Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

08.1 Merge List

📝 Instructions:

Write a function merge_list that merges two lists and returns a single new list merging all the values of both lists.

  1. Declare an empty list.

  2. Loop the two lists.

  3. Append the results into an empty list.

  4. Print the new variable with the merged lists.

💡 Hints:

  • You will have to loop through each list and insert their items into a new list.

  • There are more ways to merge lists in Python. This would be a good time for you to search on the Internet "how to merge lists in python".

💻 Expected result:

['Lebron', 'Aaliyah', 'Diamond', 'Dominique', 'Aliyah', 'Jazmin', 'Darnell', 'Lucas', 'Jake', 'Scott', 'Amy', 'Molly', 'Hannah', 'Lucas']