Welcome to Python
Welcome to Python
❑What is Python?
✓Python is a computer language that helps us talk to the computer.
✓It is simple and easy to learn.
✓We use it to create websites, games, and even smart programs!
❑Why Learn Python?
✓Python is beginner-friendly.
✓It is used in many jobs, like making apps and websites.
✓Many companies use Python, so learning it can help in the future.
✓It is fun and powerful!
Introduction to Python Programming
❑Installing Python
✓Step 1: Go to python.org.
✓Step 2: Click “Download” and install Python on your computer.
✓Step 3: Make sure to check “Add Python to PATH” when installing.
❑Installing VS Code
✓Step 1: Go to code.visualstudio.com.
✓Step 2: Download and install VS Code (it helps us write and run Python).
✓Step 3: Open VS Code and install the Python extension.
Introduction to Python Programming
❑Writing Your First Python Code
• Open VS Code.
• Click “New File” and name it hello.py
• Type this: print("Hello, World!")
• Click “Run” and see the magic!
❑What are Variables?
• A variable is a name for some information we store.
• Think of it like a box where we keep things.
• Examples:
Introduction to Python Programming
❑Data Types in Python
➢Python has different types of data:
❖Integer(int) : Whole numbers like 10, -5.
❖Float (float) : Numbers with decimals like 3.14, 25.2
❖String (str) : Text like “Hello” or “Serena”
❖Boolean (bool) : used for decisions True or False
❖List (list) : A collection of items like [“apple”, “banana”]
❑How Variables Work
➢A variable gives a name to information.
➢We can use it later in the program.
Introduction to Python Programming
❑Summary
• Python is an easy-to-learn language.
• We installed Python and VS Code.
• We wrote our first program.
• We learned about variables and data types.
• Next we will learn functions.
We continue on Thursday ……