0. Open πŸ‘¨β€πŸ’» - JulTob/Python GitHub Wiki

πŸš€ Open Python

Python can be used in several ways depending on your environment. Below are the most common options.


πŸ–₯️ Option 1 β€” Local Computer (Terminal / Command Line)

πŸͺŸ Windows

Open Command Prompt
(Press Windows key β†’ type cmd β†’ Enter)

🍎 Mac

Open Terminal
(Applications β†’ Utilities β†’ Terminal)

🐧 Linux

Open Terminal
(You already know the drill πŸ˜„)


▢️ Start Python Interactive Mode (REPL)

The interactive mode lets you execute Python commands one by one.

python3

You should see something like:

>>>

That means Python is running and ready.


πŸ“œ Run a Python Script File

If you have a file such as my_file.py:

python3 my_file.py

Python will execute the entire script.


❌ Exit Python Interactive Mode

exit()

You can also press:

Ctrl + D   (Mac / Linux)
Ctrl + Z + Enter   (Windows)

☁️ Option 2 β€” Google Colab (No Installation ⚑)

If you want to start coding immediately without installing anything, you can use Google Colab.

Colab runs Python in the cloud inside your browser.

βœ… Advantages

  • πŸš€ Zero installation
  • πŸ’» Works on any device
  • πŸ“¦ Libraries pre-installed (NumPy, Pandas, Matplotlib…)
  • πŸ€– GPU support available
  • πŸ““ Notebook style (great for experiments and learning)

▢️ How to Start

  1. Go to: https://colab.research.google.com
  2. Click New Notebook
  3. Start writing Python code:
print("Hello, world!")

Press Shift + Enter to run the cell.


🧠 When to Use Each Option

Situation | Best Choice -- | -- Learning basics quickly | ☁️ Colab Data science / experiments | ☁️ Colab Offline development | πŸ–₯️ Local Python Real projects / scripts | πŸ–₯️ Local Python

🧩 Mental Model

Python = Engine 🧠

Terminal β†’ Direct control Script file β†’ Automated execution Colab β†’ Cloud laboratory ☁️


✨ Recommendation for Beginners

Start with Colab for speed and simplicity, then move to local Python once you feel comfortable.


⚠️ **GitHub.com Fallback** ⚠️