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 #37
It is best to think of a dictionary as a set of key: value pairs, with the requirement that the keys are unique (within one dictionary). A pair of braces creates an empty dictionary: {}. Placing a comma-separated list of key:value pairs within the braces adds initial key:value pairs to the dictionary; this is also the way dictionaries are written on output. (docs.python.org/3/tutorial/datastructures.html)
Which type of bracket is used for defining dictionaries in Python?
— The Python Quiz (@thepythonquiz) December 8, 2020
[]
{}
()#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅