0

HOW TO REMOVE SQOUARE BRACKETS WHILE PRINTING A LIST

Code is See list = [183,11,32] print(list) Output : [183,11,13]#i dont want to show square brackets([])

19th Jun 2020, 6:25 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
12 Réponses
+ 7
print(*list)
19th Jun 2020, 6:31 AM
Avinesh
Avinesh - avatar
+ 2
for i in list: print(i, end=" ") print()
19th Jun 2020, 7:47 AM
Deepak
Deepak - avatar
+ 2
print(", ".join(map(repr, list)))
19th Jun 2020, 8:49 AM
Seb TheS
Seb TheS - avatar
+ 1
Well you can do it in this way also
19th Jun 2020, 7:47 AM
Deepak
Deepak - avatar
19th Jun 2020, 7:57 AM
Deepak
Deepak - avatar
+ 1
list = [183,11,32] If you don't want brackets in output you can use print(*list)
20th Jun 2020, 10:56 AM
Atharv Somani
Atharv Somani - avatar
0
Hmm write
19th Jun 2020, 8:01 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
- 1
But print(*obj) iz also great
19th Jun 2020, 7:51 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar