

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.
This is the first post I’ve ever seen that’s gotten twitter-style ratio’d. There are more comments than votes.