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 is the output of print('Hello, World!')?
Think about what the print function does.
What does the command print(20) do?
Remember, print can show numbers too!
What will print('Welcome') display?
Focus on the function's purpose.
True or False: print(5 + 10) will show 15.
What is the result of 5 plus 10?
Write a program that asks for your age and prints a message stating your age (e.g., 'I am 21 years old').
Remember to use input for user interaction.
Create a Python program that calculates the total cost when given the price and quantity of an item, and prints the total (e.g., if price is $5 and quantity is 3, output should be 15).
Think about how multiplication works in Python.
6 more questions in this section. Enroll free to practise them all.
Enroll free