Question #295

What is the output of the code snippet below?
my_list = [1, 2, 3, 4, 5, 6]
my_list.append("a")
print(my_list)

As its name suggests, the append() method appends an element to a list, as the last element. (towardsdatascience.com/append-in-python-41c37453400#:~:te...)


Comment on Disqus:

Question difficulty: 🔵🔵🔵🔵🔵