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([])
12 Respostas
+ 7
print(*list)
+ 2
for i in list:
print(i, end=" ")
print()
+ 2
print(", ".join(map(repr, list)))
+ 1
Well you can do it in this way also
+ 1
+ 1
list = [183,11,32]
If you don't want brackets in output you can use
print(*list)
0
Hmm write
- 1
But
print(*obj) iz also great