Step 1: Install Python
- Go to python.org/downloads
- Download the latest Python 3.x version for your OS.
- Check "Add Python to PATH" during installation.
[Python Installer Screenshot]
Checkbox: ✅ Add Python to PATH
Button: Install Now
Step 2: Verify Installation
Windows CMD
C:\Users\YourName> python --version Python 3.12.4
C:\Users\YourName> pip --version pip 24.0
Mac/Linux Terminal
$ python3 --version Python 3.12.4
$ pip3 --version pip 24.0
Step 3: Install an Editor
- PyCharm: Full IDE for projects.
- VS Code: Lightweight, add Python extension.
- Jupyter Notebook: Interactive experiments.
Step 4: PyCharm Directory Mockup & File Types
Here’s how your project directory and code will look inside PyCharm:
MyPythonProject
├── hello.py
├── data.txt
└── requirements.txt
# hello.py
print("Hello, Python!")
name = input("Enter your name: ")
print("Welcome,", name)
Explanation of Important Files:
- .py files (Python scripts): Contain your Python code. These are the main programs you run. Example:
hello.py
- .txt files (Text files): Used to store data, configurations, or input/output for your program. Example:
data.txt can store names, scores, or any other data your program reads.
- requirements.txt: Lists all external Python packages your project depends on. Install them using
pip install -r requirements.txt.
Other common files you may encounter:
- .csv – Comma-separated data, often used for datasets.
- .json – Structured data for APIs or configurations.
- .ipynb – Jupyter Notebook files for interactive Python experiments.
Step 5: Run Your First Program
C:\Users\YourName\Desktop> python hello.py
Hello, Python!
Enter your name: Alisha
Welcome, Alisha
Step 6: Simple Exercise
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
print("Sum =", a + b)
Enter first number: 5
Enter second number: 7
Sum = 12
✔ End of Day 1 – Python installed, verified, first script ran successfully!