How do I concatenate two lists in Python? Python tip: You can use + to join two lists into a new list. a = [10, 2] b = [6, 3] print(a + b) # => [10, 2, 6, 3]
Python tip:
You can use + to join two lists into a new list.
+
a = [10, 2] b = [6, 3] print(a + b) # => [10, 2, 6, 3]