Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does the print function do?
Think of it as sending messages to the screen.
Write a simple program to print your name.
Replace '[Your Name]' with your actual name.
What does the print() function do?
Think about what happens when you write something within print.
Is 'Hello, World!' a string?
Check if it meets the definition for strings.
Write a program that prints a motivational quote of your choice.
Pick a quote you like and remember to use quotes.
Create a multi-line output using print. Display your name, age, and a hobby in separate lines.
Use '\\n' to create a new line in the output.
4 more questions in this section. Enroll free to practise them all.
Enroll free