

If you’re able to code from a terminal, and care about longer battery life (my main concern when working from a coffee shop or elsewhere), I’d recommend getting a used android tablet, pry something from xiaomi or oneplus. You can find a decent model used for around that price with > 8 hour battery life easily.
Get a good stand, a solid bluetooth keyboard (logitech makes some great portable ones), and put termux on it (can probably handle light python locally).
If you need it to do CPU powerful tasks, use termux to remote into a VPS or your home server, and let a plugged in linux machine do the work so you can save your device’s battery life. This is how I code at least.
You mean the power cost of a computer idling at home?
I have 5 computers (beelink and nuc servers) at home rn, each idles at ~6 watts. That’s about 40 usd a year. One computer would be 8.5 usd per year.