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 #445
Python 3.9 introduces a new way to merge dictionaries using a union operator | . All other syntaxes above will throw SyntaxError errors. (towardsdatascience.com/merging-dictionaries-in-python-3-9...)
Which Python 3.9+ syntax allows to merge two dictionaries x and y?
— The Python Quiz (@thepythonquiz) October 31, 2020
z = x | y
z = x + y
z = x u y
z = x ++ y
z = x || y#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅