If you want to add a list to another list, use the append method. To add elements of a list to another list, use the extend method.
The code above shows the difference between the two.
If you want to add a list to another list, use the append method. To add elements of a list to another list, use the extend method.
The code above shows the difference between the two.