Youcanbuildtech / LearnProgramming Basics with Python
0 of 2 available lessons completeProgress saved in this browser
Lesson 2 of 12
Writing Your First Python Program
Understand how to write, run, and modify simple Python instructions using print().
Watch Writing Your First Python Program
Write a Python instruction in the editor and run it to see the output. print() can display text, numbers, and calculation results. Quotation marks make 10 + 5 text; without them, Python calculates 15. Parentheses and quotation marks matter, and instructions run from top to bottom.
Continue to QuizCheck your understanding
Quiz
Answer each question correctly. You can try again as often as you like.
Try it in Python
Practice
Print the word Hello, then print the word Python on separate lines.
Show hint
Use print('Hello') and another print() call.
Reveal example solution
print('Hello')
print('Python')Output
Run your code to see its output.
Python runs in your browser. Avoid entering private information. Browser workers are not a strong security boundary.