Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
Write a line of code to print your favorite color.
Use the print() function with your color in quotes.
What will this line of code return? print('Hello')
Try running the code and see what appears on the screen.
What does the print() function do?
Remember what we learned about the print function.
The following code will cause a Syntax Error: `print('Hello)
Think about the format of your strings.
Modify the print('Hello, World!') to include your age and favorite food in one sentence.
Use the same format and remember to replace the placeholders.
Create two print statements: one for greeting and another for your city. Ensure no syntax errors occur.
Check each statement individually to avoid errors.
5 more questions in this section. Enroll free to practise them all.
Enroll free