Python Programming Basics Lecture Note
Python Programming Basics Lecture Note
Introduction to Python
Key Features:
- Interpreted language
- Dynamically typed
Basic Syntax:
1. Printing:
print("Hello, World!")
2. Variables:
name = "Alice"
age = 25
3. Data Types:
4. Conditional Statements:
Page 1
Python Programming Basics
print("Adult")
5. Loops:
for i in range(5):
print(i)
age += 1
6. Functions:
def greet(name):
7. Lists:
8. Dictionaries:
This is a basic overview of Python programming to get started with writing simple scripts and
Page 2