No computer? You can learn Python on an Android phone too.
The easiest way is the Termux app. Termux opens a Linux terminal on the phone. You install Python there and run code directly.
Get Termux from F-Droid or its official GitHub page. The Termux project recommends these two sources.