0. Open π¨βπ» - JulTob/Python GitHub Wiki
Python can be used in several ways depending on your environment. Below are the most common options.
Open Command Prompt
(Press Windows key β type cmd β Enter)
Open Terminal
(Applications β Utilities β Terminal)
Open Terminal
(You already know the drill π)
The interactive mode lets you execute Python commands one by one.
python3
You should see something like:
>>>
That means Python is running and ready.
If you have a file such as my_file.py:
python3 my_file.py
Python will execute the entire script.
exit()You can also press:
Ctrl + D (Mac / Linux)
Ctrl + Z + Enter (Windows)
If you want to start coding immediately without installing anything, you can use Google Colab.
Colab runs Python in the cloud inside your browser.
- π Zero installation
- π» Works on any device
- π¦ Libraries pre-installed (NumPy, Pandas, Matplotlibβ¦)
- π€ GPU support available
- π Notebook style (great for experiments and learning)
- Go to: https://colab.research.google.com
- Click New Notebook
- Start writing Python code:
print("Hello, world!")
Press Shift + Enter to run the cell.
Situation | Best Choice -- | -- Learning basics quickly | βοΈ Colab Data science / experiments | βοΈ Colab Offline development | π₯οΈ Local Python Real projects / scripts | π₯οΈ Local Python
Python = Engine π§
Terminal β Direct control
Script file β Automated execution
Colab β Cloud laboratory βοΈ
Start with Colab for speed and simplicity, then move to local Python once you feel comfortable.