← All topics
Quiz: Python Operators and Input: questions with answers
14 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What is the output of print(20 // 6, 20 % 6)?
- Q2. What does input() return when the user types 25?
- Q3. What is the value of not (5 3 and 2 4)?
- Q4. What does this print? (code)
- Q5. Which f-string prints 3.14159 as 3.14?
- Q6. What does this print? (code)
- Q7. What does this print? (code)
- Q8. How do you read a whole number from the user?
- Q9. What does this print? (code)
- Q10. What does this print? (code)
- Q11. What does this print? (code)
- Q12. What does this print? (code)
- Q13. A user types 4 and then 5 for a = input() and b = input(). What does print(a + b) show?
- Q14. What does this print? (code)