lst = [1,2,3,4,5] print(*lst,end="\n") #output 1 2 3 4 5
Here is what the above code is Doing:
1. We have a list of numbers.
2. We print the list using the print function.
3. We use the * operator to unpack the list.
4. We use the end keyword argument to print a newline character.