Readable
Python code often looks like simple, understandable instructions. That makes it easier to focus on the problem you want to solve.
Start Here · Python Foundations
Meet Python, see where it is used, and run your first small program.
Did you know?
Guido van Rossum created Python. Work began in the late 1980s, and the first public release appeared in 1991. Python was named after the comedy show Monty Python’s Flying Circus, not originally after a snake.
Why Python?
Python is easy to start with, but it is not just a beginner language.
Python code often looks like simple, understandable instructions. That makes it easier to focus on the problem you want to solve.
You can make a small program quickly without a lot of extra setup, then build confidence through experiments.
Python is used for serious professional projects as well as learning. Easy to start does not mean limited.
A large collection of libraries, frameworks, and tools gives Python developers helpful building blocks.
Where is Python used?
Python can run the server side of a web application: the part that receives requests, works with data, and sends pages back. Later in Python AI Tutor, we will use Django to build real web applications with Python.
You could build a project hub or a small website.Python is very often used for AI and machine-learning tools and applications. You do not need to understand the deep theory to begin exploring what these tools can do.
You could explore an AI-assisted learning tool.Python can collect, calculate, organize, and visualize data. You do not need to understand every part of this code yet. We will learn lists and functions later.
grades = [5, 4, 5, 3, 5]
average = sum(grades) / len(grades)
print(average)You could calculate an average from grades.Python can rename many files, process spreadsheets, organize data, and handle repetitive computer tasks. If you repeatedly do the same computer task, Python may be able to automate part of it.
You could organize a folder full of reports.Python is a welcoming place for quizzes, simple games, text adventures, simulations, and creative experiments.
You could create a quiz or a text adventure.People use Python in mathematics, physics, biology, research, and when processing experimental results.
You could explore a small science calculation.A programming language is a way to give a computer instructions. A program is a set of instructions that the computer follows. Python is one programming language that helps people turn ideas into small programs, useful tools, and bigger projects.
print("Hello!")
print("I'm learning Python.")print() tells Python to display something on the screen. "Hello!" is text that Python should display; the quotation marks show Python that it is text. Each print() instruction produces its own output line.
You do not need to learn every detail about print() yet. For now, notice one simple pattern: you write an instruction, run the program, and Python follows the instruction.
A good first habit: Read the code, make one small change, run it, and notice what changed. Trying small experiments is a real programming skill.
print("Hello, Ana!")1. You write an instruction. 2. Python reads and runs it. 3. A result appears on the screen. The computer does not guess what you mean—it follows the instructions you give it.
name = "Ana"
print("Hello", name)Python can store information under a name and use it later. Here name is called a variable. Variables are the next Foundations concept, so you do not need to understand this syntax yet—just notice that the stored name appears in the greeting.
Understand the problem → Break it into smaller steps → Write something → Run it → Read the result or error → Change it → Try againFor example: the goal is to make the computer greet a user. What do we need? A name and a way to display a message. Programmers start with a small idea, test it, and improve it instead of memorizing every command.
See code → ask “What does it do?” → learn the details step by stepDuring this course, you may see Python code containing things you have not learned yet. That is okay. First try to understand what the program does. Step by step, you will learn what each part means.
Make this tiny program yours: 1. Change the text inside the quotation marks. 2. Enter your name or nickname. 3. Write one reason you want to learn Python. 4. Run the program. 5. Read the output. 6. Change one sentence and run it again. You just changed a program and made the computer follow your instruction.
The browser runtime is loading. You can still edit the example code.
Pyodide runs Python in a browser Web Worker. It is stopped and restarted if code keeps running. Browser execution is not a complete security boundary; do not enter secrets or rely on it for untrusted code isolation.
Read from top to bottom. Each print() shows its text on a new line.
print("Python")
print("AI Tutor")
Your learning mentor
Create a free account or sign in to get AI guidance while you learn.
Create a free account or sign in to receive AI feedback and save your learning progress.