# Introduction to Python Programming
## Getting Started with Python
Python is a versatile, high-level programming language known for its
readability and simplicity. This guide introduces beginners to Python’s
core concepts.
### Setting Up
1. **Install Python**: Download Python 3 from python.org and follow the
installation instructions.
2. **Choose an Editor**: Use IDLE (included with Python), PyCharm, or VS
Code for coding.
3. **Test Installation**: Open a terminal and type `python --version` to
confirm installation.
### Basic Syntax
- **Variables**: Store data using `name = value`. Example: `age = 25`.
- **Print Function**: Display output with `print("Hello, World!")`.
- **Comments**: Use `#` for single-line comments.
### Example Code
Here’s a simple program to calculate the square of a number:
```python
number = 5
square = number * number
print(f"The square of {number} is {square}")
```
### Control Flow
- **If Statements**:
```python
if number > 0:
print("Positive")
else:
print("Non-positive")
```
- **Loops**:
```python
for i in range(5):
print(i) # Prints 0 to 4
```
### Next Steps
Explore Python’s libraries like `math`, `random`, or `pandas` for
advanced tasks. Practice with small projects to build confidence.
Happy coding!