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!
def f(x): x.append(0) return x my_list =  f(my_list) print(my_list)
Python functions have side effects! As lists are mutable, 0 will be appended to my_list will every time the function is called. (docs.python.org/2/faq/programming.html#what-are-the-rules...)
Question difficulty: 🔵🔵🔵🔵🔵