Lesson 1 — Hello, Python
Your first program
Every program talks to us by producing output. In Python, print() displays whatever you put inside its parentheses. Text (a string) must be wrapped in quotes — "like this". Numbers do not need quotes.
Why it matters: print() is how you see what your code does, so you will use it constantly to check your work and find bugs.
Watch out: forgetting the quotes around text, or the closing parenthesis, is the most common first error.
Make the program also print: I am learning Python
A quick 3-question quiz on this lesson — instant feedback.
Ready for more? These paid resources pick up where this lesson leaves off.
Project-based Python Foundations video courses — the perfect paid next step after these free lessons.
Browse on Udemy →Hand-picked Python Foundations books to master the fundamentals offline.
See on Amazon →Some links on this page are affiliate links: we may earn a commission at no extra cost to you. We only recommend tools we believe are genuinely useful.