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.
What is the result of 5 + 3?
Use the addition operator.
What is 12 % 5?
Find the remainder when 12 is divided by 5.
Which symbol is used for addition in Python?
Think of basic math operations.
True or False: The modulus operator returns the quotient of division.
Remember what modulus does.
Write a Python program that takes a person's age and checks if they’re eligible to vote (age >= 18) and a citizen.
Think about using AND.
Given x = 20, write an expression that checks if x is both greater than 10 and divisible by 3.
You'll need to use both comparison and logical operators.
5 more questions in this section. Enroll free to practise them all.
Enroll free