Python: Append a list to the second list
Append One List to Another
Write a Python program to append a list to the second list.
Example - 1 :

Example - 2 :

Example - 3 :

Sample Solution:
Python Code:
Sample Output:
[1, 2, 3, 0, 'Red', 'Green', 'Black']
Flowchart:

For more Practice: Solve these Related Problems:
- Write a Python program to append multiple lists to a given list.
- Write a Python program to append a list to another without using built-in functions.
- Write a Python program to append items of a list to another only if they are not already present.
- Write a Python program to append two lists element-wise.
Go to:
Previous: Write a Python program to flatten a shallow list.
Next: Write a Python program to select an item randomly from a list.
Python Code Editor:
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.