Python Programming - Class Notes
Course: Programming with Python
Semester: 2
Instructor: Prof. Shalini K
-----------------------------------------
Chapter 1: Introduction
Python is a high-level, interpreted language with dynamic typing and garbage
collection.
Applications:
- Web Development
- Data Science
- Automation
- AI/ML
-----------------------------------------
Chapter 2: Basics
- Variables and Data Types: int, float, str, list, dict
- Input/Output: input(), print()
- Operators: Arithmetic, Logical, Relational
-----------------------------------------
Chapter 3: Control Structures
- if, elif, else
- for loops
- while loops
- break, continue
-----------------------------------------
Chapter 4: Functions
- def keyword
- Parameters and return values
- Lambda functions
- Scope: local and global
-----------------------------------------
Chapter 5: Data Structures
- Lists: append(), pop()
- Tuples: immutable
- Dictionaries: key-value pairs
- Sets: unique values
-----------------------------------------
Conclusion
Python’s simplicity and versatility make it one of the most important languages in
the tech world today.
Prepared by: Mohammed Shadhath
"""