π What is Python?
Python is a high-level, interpreted programming language created by Guido van Rossum and released in 1991. It focuses on code readability and simplicity, which makes it a great first language to learn.
π Why Learn Python?
β
Easy to understand
β
Widely used in tech industries
β
Great for automation, AI, web, and app development
β
Huge community and tons of free learning resources
π‘ Real-World Uses of Python
-
Web apps (Django, Flask)
-
Data science and AI (Pandas, NumPy, TensorFlow)
-
Game development (Pygame)
-
Automation (scripting, bots, file management)
π» Your First Python Code
Open your code editor or an online compiler like Replit.com and type this:
π This simple program tells Python to print the text “Hello, world!” on the screen.
π How Python Works
-
print()
is a built-in function to display text -
Text inside
" "
is called a string -
Python doesnβt need semicolons
;
or curly braces{}
π§ Mini Practice
Try this program:
π€ This program:
-
Asks the user for their name
-
Greets them using their input
π Summary
-
Python is one of the best first languages for beginners
-
It’s powerful, readable, and used by top companies
-
Youβve written your first working Python program!
β Next Lesson Preview
β Installing Python & Setting Up an IDE (VS Code, Thonny, or PyCharm)