Python for Beginners
Write real programs with variables, loops, lists, dictionaries and functions
Technology & ProgrammingWrite real programs: games, quizzes and calculators from your first line of code
Finish the 10 lessons (about 1 h 55 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.
Python is the language behind a lot of things you already use: video recommendations, science experiments, school robotics kits, and plenty of the tools that make games and websites run. It's also one of the easiest real programming languages to start with, because the code reads almost like short English sentences.
This free course takes you from zero to writing small programs of your own. You'll start with print() and learn what error messages are actually telling you. Then you'll store information in variables, do math with operators like // and %, and work with text: asking the user for input, gluing strings together and formatting output with f-strings.
Next you'll teach your programs to make decisions with if, elif and else, and to repeat work with for and while loops. You'll use the random module to build a number-guessing game. In the last module you'll store collections of data in lists and package your own reusable tools as functions, then put everything together in a quiz program.
The course is built for teens aged roughly 13 to 18 with no coding experience. Every lesson is short and practical: you'll read a bit of code, predict what it does, spot bugs, put lines in the right order and test your understanding with quick checks. You don't need to install anything to follow along, though trying the examples in a free online Python editor or in Python on your own computer will help a lot.
Finish the lessons and pass the final exam to earn a free certificate of completion you can add to a portfolio, a school application or your profile.
Run your first program, read error messages without panic, and store information in variables of the right type.
Make Python calculate for you, then work with text: read what the user types, convert it and format clean output.
Teach your programs to choose between paths with if statements and to repeat work with for and while loops, then build a guessing game.
Store collections of data in lists, package reusable code as functions, and combine every skill from the course into a quiz program.
20 questions drawn from a pool of 32. Score 70% or more to pass; retakes get a fresh set of questions.
What does this program show on the screen?
``
print("3 + 4")
print(3 + 4)
``
Answer: C. 3 + 4 and then 7
The first line prints a string: the characters inside the quotes, exactly as written. The second line has no quotes, so Python calculates 3 + 4 first and prints the result, 7. The trap is thinking quotes don't matter; they change text-to-show into math-to-do.
No. Every lesson works in the browser, and you answer questions about the code on screen. To practice further, you can use a free online Python editor or install Python 3 from python.org on a computer. Phones and tablets work with online editors too.
Yes. Python has simple, readable syntax, so you spend your energy on ideas like variables, loops and functions instead of punctuation. Those ideas transfer directly to JavaScript, Java, C# and other languages if you switch later.
Text-based games, quizzes, calculators, simple grade or budget trackers and small tools that process lists of data. The next steps after this course are files, dictionaries, and libraries for graphics, games (such as Pygame) or data.
You can learn the basics covered here in a few hours. Getting comfortable takes a few weeks of writing small programs regularly. Writing code yourself matters far more than reading about it: aim for short daily practice.
Python 2 is an older version that stopped receiving updates in 2020. Everything in this course is Python 3. If you see code online that writes print without parentheses, like print "hi", it is Python 2 and will not run in Python 3.
No. It is a certificate of completion showing you finished the lessons and passed the exam. It is a good addition to a portfolio or application, but it is not an academic credit or industry certification.
Write real programs with variables, loops, lists, dictionaries and functions
Technology & ProgrammingVariables, functions, arrays, objects, the DOM and async code
Technology & ProgrammingCode real browser games with variables, loops, canvas drawing, keys and collisions
Technology & ProgrammingAlgorithms, loops, if-then, variables and bug hunting, then write real JavaScript
Technology & ProgrammingTrack changes, branch safely and collaborate with pull requests
Technology & ProgrammingThink like a computer: steps, loops, choices, searching and sorting
Technology & Programming