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!
some_fruits = ["banana", "apple", "pear"] some_fruits += "grapefruit" print(some_fruits)
The += operator will append all elements of "grapefruit" to the list some_fruits . As "grapefruit" is a string, every letter is an element. The result is then ['banana', 'apple', 'pear', 'g', 'r', 'a', 'p', 'e', 'f', 'r', 'u', 'i', 't'] . (geeksforgeeks.org/python-append-string-to-list)
Question difficulty: 🔵🔵🔵🔵🔵