How To Print A List Without Brackets And Commas
I have a file, 6802496011442316593 1625090609 51048468525236 aaa=1111|bbbb=15|cccc=216|dddd=1625090604|eeee=5|ffff=12000|ggg=brtnrn=|hhhh=4|ii=lfp|ts=1625090609 68024960114423165
Solution 1:
Try:
print(*tslist[0].splitlines(), sep="\n")
Solution 2:
for lists
Try this:
list = ['1625090429','1625090489','1625090549','1625090599','1625090599']
for item inlist:
print(item)
Output:
1625090429
1625090489
1625090549
1625090599
1625090599
for lists in lists
Try this:
list = [['1625090429'],['1625090489'],['1625090549'],['1625090599'],['1625090599']]
for item inlist:
for x in item:
print(x)
Output:
1625090429
1625090489
1625090549
1625090599
1625090599
Post a Comment for "How To Print A List Without Brackets And Commas"