What is the output of the following code? list1 = [1, 2, 3]

Automate Cybersecurity Tasks with Python | Weekly challenge 3 Quiz | 

What is the output of the following code?

list1 = [1, 2, 3]
list2 = [“a”, “b”, “c”]
print(list1 + list2)
  • [1, 2, 3, “a”, “b”, “c”]
  • An error message
  • [1, “a”, 2, “b”, 3, “c”]
  • [6, “abc”]

 

Leave a Comment