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 print(3 + 4) output?
Think about what 3 + 4 equals.
What would print(12) display?
Remember, it should output the number as is.
What will print(10) display?
Think about what the function is supposed to display.
True or False: You can use print() to display the result of a mathematical operation.
Remember, print is for showing results.
Write a Python statement using print() to calculate and display the area of a rectangle with length = 5 and width = 3.
Recall the formula for area is length times width.
Create a print statement that combines text and the result of an operation. E.g., 'Total: ' with the sum of 12 and 7.
Make sure to include both text and the operation within the print function.
3 more questions in this section. Enroll free to practise them all.
Enroll free