I'm attempting to merge two lists using
, but I'm having trouble because the lists include various data types. Here's the scenario:Code:
List 1: [1, 2, 3] ['a', 'b', 'c'] List 2 [1, 2, 3, 'a', 'b', 'c'] Merged List
Code:
list1 = [1, 2, 3]
list2 = ['a', 'b', 'c']
merged_list = []
for item in list1:
merged_list.append(item)
for item in list2:
merged_list.append(item)
print(merged_list)
Thank you so much for your aid!







