How to Install & Set Python on Window
Step 1: Download Python
- Open Google Chrome
- Type python.org
- Click Download Python
- Click Download (latest version)
Step 2: Install Python
- Open the downloaded file
- Tick: Add Python to PATH (IMPORTANT)
- Click Install Now
- Wait → Click Close
Step 3: Check Python
- Press Windows + R
- Type cmd → Enter
- Type:
- python
- If you see >>>
Python is ready
Step 4: Test Python
Type:
print("Hello")
Press Enter
If it prints Hello
Python is working
Step 5: Write a Python File
- Open Notepad
- Type:
- print("My first Python program")
- Click Save As
- File name: test.py
- Save type: All Files
Step 6: Run the File
- Open Command Prompt
- Go to file location
- Type:
- python test.py
Done!
Python is now set on your window
Categories: python programming