Most schools don't let you use chargers due to fire and tripping hazards. The macbooks strength is you can use it on battery for the entire day. Most alternatives fail at this.
ARM PC laptops are on par with Macbooks in terms of battery life nowadays.
They would still be better purchasing a used MacBook as you can find those at similar prices and they (assuming they aren't Intel) will have the long battery life and more.