What is the output of the following Python code? t = (5); u = (5,); print(type(t).__name__, type(u).__name__)
Correct answer C. int tuple
Topic / 88 questions
Page 4 of Python multiple-choice questions with answers. Tap an option to check yourself.
Page 4 of 5
Correct answer C. int tuple
Correct answer B. 3 4
Correct answer D. [[1, 0], [1, 0]]
Correct answer C. __main__
Correct answer B. #
Correct answer A. match
Correct answer B. print
Correct answer D. _total2
Correct answer A. import this
Correct answer C. x is None
Correct answer B. CapWords, for example BankAccount
Correct answer A. 4
Correct answer A. The BBC comedy series Monty Python's Flying Circus
Correct answer C. 1 January 2020
Correct answer C. 79 characters
Correct answer B. Guido van Rossum
Correct answer A. -3 -2
Correct answer C. 512
Correct answer A. -4
Correct answer B. True False