Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What type of value does the input() function return in Python?
Think about why we wrap input() inside int().
Predict the output of print("5" + "3") and of print(5 + 3).
Look carefully at the quotation marks.
What does input() give back when the user types 25?
Remember the 53 mistake.
What is printed by print("5" + "3")?
Look at the quotation marks.
Write a program for a shop that reads the prices of two items, adds them, takes off a 10% discount and prints the total, the discount and the amount to pay.
Find the total first, then 10% of it, then subtract.
Write a program that reads three whole numbers and prints their sum and their average.
Add all three numbers, then divide the total by 3.
6 more questions in this section. Enroll free to practise them all.
Enroll free