0

How to broken line in list

nums = [1,2,3] Print (nums) I wanna a result: 1 2 3

14th Apr 2020, 10:29 PM
Player Droid
Player Droid - avatar
3 Respuestas
+ 3
for i in nums: print(i)
14th Apr 2020, 10:31 PM
Russ
Russ - avatar
+ 1
print('\n'.join(map(str,nums)))
16th Apr 2020, 3:11 AM
visph
visph - avatar