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 #916
print(tuple("(1,2,3"))
Watch the trap! When casting a string to a tuple, the tuple() function will create a tuple and insert each and every element of the string as an element for the tuple. (geeksforgeeks.org/python-convert-string-to-tuple)
Question difficulty: 🔵🔵🔵🔵🔵
Similar questions: