Skills101
← All practice quizzes

Quiz: Python Operators and Input

5 questionsNo time limitPass: 60%+10 XP on first pass

Arithmetic, comparison, logical and assignment operators, taking input from the user, and formatting output neatly with f-strings.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What is the output of print(20 // 6, 20 % 6)?

  2. Question 2

    What does input() return when the user types 25?

  3. Question 3

    What is the value of not (5 > 3 and 2 > 4)?

  4. Question 4

    What does this print?

    x = 7
    x %= 4
    x **= 2
    print(x)
    
  5. Question 5

    Which f-string prints 3.14159 as 3.14?