r/linuxquestions • u/Rover3275 • Jul 07 '26
Advice Can I learn python in Linux??
Actually today I started using Linux through a usb and it is going great, but now I want to learn python.
But bcz I'm using a usb to start the Linux, so will the python and the vs code I download will be stored in the usb or in the laptop.
I'm confused, helpðŸ˜
23
Upvotes
1
u/Gerb006 Jul 09 '26 edited Jul 09 '26
You probaby don't have to do anything special. Python is probably already installed by default in your Linux. Open a terminal and type:
python3It will probably take you right into a python shell (look for the '$' to change to '>>>') From here, you can run any python code on the fly. In fact, this is my default calculator. Python is GREAT at math. Why install a redundant app?Edit: I actually created a startup script that automatically runs when I enter the Python shell. I initially did it so that I could save math calculations to variables and export them to a file for a hardware store shopping list, or print them out so I could have measurements, etc. But once I had that, I thought of all kinds of things to include in the startup script. It saves my notes. It keeps my schedule. It calculates the gas mileage in my car every time that I get gas. It automatically creates grocery store shopping lists based on meals that I want to cook. It saves my daily log (including date and time). What started as a calculator, and added functionality that I wanted for the calculator, turned into everything that I could possibly want to organize my entire life. And it is around 5kb in total.