I recently discovered that I could very well program on my smartphone. I just bought a simple bluetooth keyboard and placed it on the short left side.
To my surprise it worked pretty good. The battery time was far greater than my old laptop. With a powerbank my time programming is not cut short. Tried it on a visit to the local café.
There are android course apps available that lets you run the code you write and check if the output is correct. Pretty fun.
What I would like to have is a small phone case that is also a small computer like a raspberry pi zero. Then I could use the phone as a usb connected mobile screen and shared internet. With this I could install many python programming modules.