space separated into list in python code example
Example: print list as space separated python
>>> marks = [12, 23, 34, 56]
>>> print(marks)
[12, 23, 34, 56]
>>> print(*marks)
12 23 34 56
// *[listName] can be used to pass all elememts as separate arguements