Press Check
This is your very first step, and the code is already written for you. Press "Run" to see what it shows on the screen. Then press "Check solution": that is how…
Learn how to display text on the screen using the print() function. This is where every programmer starts their journey!
Python errors explainedPython is a programming language that allows you to give instructions to a computer.
The print() function displays text on the screen. To use it, write:
print("Your text here")
The text must be enclosed in quotes (either "double" or 'single').
This is your very first step, and the code is already written for you. Press "Run" to see what it shows on the screen. Then press "Check solution": that is how…
print() shows text on the screen. The text sits between quotes. Change the text so the program shows I like Python. Example output: I like Python
Text needs a quote before it and a quote after it. In the code below one quote is missing. Fix it so the program shows Good morning. Example output: Good…
print() can show numbers too. A number is written without quotes. Write a program that shows the number 2026. Example output: 2026
One print() shows one line. Add a second print() below the first one so the program shows two lines: Hello and World. Example output: Hello World
Every opening bracket ( needs a closing bracket ). In the code below one bracket is missing. Fix it so the program shows Python is fun. Example output: Python…
Python treats capital and small letters as different letters. The command is print, all small letters. Fix the code so it shows Nice to meet you. Example…
This program has a typo. When something is wrong, Python writes an error and tells you the line number. Run the code, read the message and fix that line. The…
Write a program that displays the text "Hello, World!" on the screen. This is the traditional first program that every programmer writes!
Write a program that displays your name on the screen. For example, if your name is Alex, the program should output: Alex
Write a program that displays two lines: Line 1: Python Line 2: is awesome! Use two print() statements.
Learn how to display text on the screen using the print() function. This is where every programmer starts their journey!
This lesson has 11 exercises.
No. The code is written and run in the browser.