Introduction to Programming
and Python
Understanding the Basics
Your Name | Date
What is Programming?
• • Programming is giving instructions to a
computer to perform tasks.
• • It's used to create applications, games,
websites, AI systems.
• • Key Idea: Programmers solve problems using
code.
Why Learn Python?
• • Easy to read and write.
• • Widely used in various fields:
• - Web development
• - Data science
• - Automation
• - Game development
• • Large community and many learning
resources.
Setting Up Python
• 1. Download Python from
https://www.python.org.
• 2. Install an editor (IDLE is pre-installed, or try
VS Code).
Writing Your First Python Program
• 1. Open IDLE or a text editor.
• 2. Type this code: print("Hello, World!").
• 3. Save the file with .py extension.
• 4. Run the program.
• Example:
• print("Hello, World!")
Anatomy of a Python Program
• • Code: The instructions you write.
• • Syntax: Rules for writing Python code.
• Example:
• print("Hello")
• Key Concept: Python syntax is simple and
intuitive.
Practice Time
• Activity:
• • Modify the program to print your name and
a custom greeting.
• Example: Hello, John! Welcome to Python!
• • Save and run your modified program.
What We Learned Today
• • What programming is and why Python is
popular.
• • How to set up Python.
• • Writing and running your first Python
program.
• Question: What did you find most interesting
or challenging today?
What’s Next?
• • Next Session: Variables and Data Types.
• Homework:
• 1. Research examples of Python being used in
real life.
• 2. Practice writing and running simple print
statements.