Python Programming Basics Class Notes
Python Programming Basics Class Notes
Notes
1. Introduction to Python
Python is a high-level, interpreted programming language known for its simplicity and
readability. It supports multiple programming paradigms including procedural, object-
oriented, and functional programming.
3. Control Structures
• if, elif, else
• for loops
• while loops
• break and continue statements
4. Functions
Functions in Python are defined using the `def` keyword. Example:
```python
def greet(name):
return f"Hello, {name}"
```
5. Object-Oriented Programming
Python supports OOP with classes and objects.
Example:
```python
class Person:
def __init__(self, name):
self.name = name
```
6. Common Libraries
• NumPy
• Pandas
• Matplotlib
• Requests
• Flask
These notes are designed for beginners to build a solid foundation in Python programming.