Current Lesson

Variables in Python

Module Progress

  • 📖 Introduction
  • 💻 Variables
  • 🔢 Data Types
  • ➗ Operators
  • 📝 Practice
  • ✅ Quiz

Python Programming: Level 1 - Variables

🤖
Online
AI Tutor Just now

Welcome to Python programming! Today we'll learn about variables - one of the most fundamental concepts in programming.

What are Variables?

Think of variables as labeled boxes where you can store information. Each box has a name and can hold different types of data.

Example:


# This is a variable storing your age
age = 16

# This variable stores your name
name = "Alex"

# This variable stores if you're a student
is_student = True
                                

In this example, 'age', 'name', and 'is_student' are variables storing different types of information.

Try It Yourself!

Create a variable called "city" and assign your city name to it.

Python Code

AI Assistant

AI: Hi! Need help? Ask me anything about this lesson!