The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #247
(1.0,)
(1.0,) is a tuple containing the float 1.0 . When generating a one-element tuple, if you write only one object in parentheses (), the parentheses () are ignored and not considered a tuple. To generate a one-element tuple, a comma , is required at the end. (note.nkmk.me/en/python-tuple-single-empty)
What is the type of the object below?
— The Python Quiz (@thepythonquiz) November 28, 2020
(1.0,)
A tuple
An integer
A float#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅