Answers for "print elements in a list without any separation in python"

8

print list without brackets int python

# you're using Python 3, or appropriate Python 2.x version with from __future__ import print_function then:

data = [7, 7, 7, 7]
print(*data, sep='')
Posted by: Guest on March-11-2020
0

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
Posted by: Guest on December-19-2020

Code answers related to "print elements in a list without any separation in python"

Python Answers by Framework

Browse Popular Code Answers by Language