Introduction to Python Programming
A Beginner-Friendly Overview
What is Python?
Python is a high-level, general-purpose programming language created by Guido van
Rossum and first released in 1991. It emphasises code readability and simplicity, making it
ideal for beginners and experts alike. Python is used in web development, data science,
artificial intelligence, automation, scientific computing, and more.
Core Concepts
Variables & Data Types
name = "Asha" # string age = 14 # integer height = 5.4 # float is_student = True
# boolean
Conditional Statements
if age >= 18: print("Adult") elif age >= 13: print("Teenager") else:
print("Child")
Loops
for i in range(1, 6): print(i) # prints 1 to 5 count = 0 while count < 3:
print("Hello") count += 1
Functions
def greet(name): return f"Hello, {name}!" print(greet("Asha")) # Hello, Asha!
Lists
fruits = ["apple", "banana", "mango"] [Link]("grape") print(fruits[0]) #
apple print(len(fruits)) # 4
Why Learn Python?
• Easy to read — code looks almost like plain English.
• Huge community and thousands of free libraries (NumPy, Pandas, Flask, etc.).
• Used by top companies: Google, Netflix, NASA, Instagram.
• Free and open-source with cross-platform support.
• Strong demand in the job market for Python developers.