The following is for rolling up your sleeves and getting your hands dirty.
You will need a real computer to learn Python programming. Tablets, smart phones, web based classes are not sufficient.
I believe the following is the minimum required.
Ask around, someone may have hardware gathering dust in a closet. Yard sales. Purchase or build.
The hardware (computer) is a testbed. You want to be able to delete everything and start over.
Linux OS preferred (Linux it is free - I use Linux Mint)
internet connection (preferably a Local Area Network (LAN) connected to the internet)
The Raspberry Pi is an inexpensive Single Board Computer (SBC).
The videos are from ExplaningComputers.com and demonstrates building a $500 computer.
Choosing PC Build Components
(YouTube)
Building a $500 PC
(YouTube)
Explaining PC Front Panel Connectors
(YouTube)
Explaining Motherboard Chipsets
(YouTube)
Explaining PC Power Supplies
(YouTube)
Explaining SSDs: The Price/Performance Trade-off
(YouTube)
PC Build & Upgrade Videos (ExplainingComputers.com)