Python is a high-level, interpreted programming language used in:
- Web development
- Automation
- Data analysis
- Machine learning
- Game development
Python is known for its simplicity and readability, making it ideal for beginners.
Example:
print("Hello World")Python does not require complex setup, curly braces, or semicolons. It emphasizes English-like syntax, so it’s easier to read and write.
Python code is interpreted, meaning it runs line by line. This helps beginners quickly see errors and results.
- Visit https://www.python.org
- Download the latest stable version
- Run the installer
- Check installation:
python --versionYou can run Python in:
- Python IDLE
- Terminal / Command Prompt
- Code editors like VS Code
- Mobile apps (Pydroid / QPython)
Example file: hello.py
print("Welcome to Python")Run it:
python hello.pyprint("Hello World")print()is a built-in function"Hello World"is a string literal- Output shows text on screen
- Using capital
Print()instead ofprint() - Missing quotes
- Incorrect installation
Try these:
- Print your name
- Print two different messages
- Print a number
Example:
print("Name")
print("CodingGita Rocks!")
print(100)