PROGRAMMING / BEGINNER
Python, from zero
Learn to think in code. Get comfortable with variables, decisions, and your first little program.
3 text lessons 15 min + practice English
What you’ll learn
- 01Meet variablesPreview
Use your own name, then create a variable for your favorite language.
- 02Make a decision
Try a score of 5 and then 10. Add an elif branch for a perfect score.
- 03Build a tiny calculator
Write subtract and multiply functions, then test them with positive and negative numbers.
Before you start
No previous coding experience is needed. Use a laptop or desktop with an internet connection, a modern web browser, and Python 3 installed. Lessons can be read on mobile, but a computer is best for the exercises.
Meet variables
A variable gives a value a name, so you can use it later. Run this example with Python 3. Strings hold text, and numbers let you calculate.
name = "Learner"
lessons = 3
print(f"Hello, {name}!")
print(f"You have {lessons} lessons to explore.")Your turn
Have a question about this course? Get in touch.Use your own name, then create a variable for your favorite language.