0
How to print out Save me in one line if list = ('S' , 'a' , 'v' , 'e' , 'm' , 'e')
If I use for then all letter get print in different lines.
2 Respostas
+ 4
list = ['s', 'a', 'v', 'e', ' ', 'm', 'e']
char = ''
print(char.join(list))
#returns 'save me'
+ 2
lst = ('S' , 'a' , 'v' , 'e' , 'm' , 'e')
print(*lst, sep="")
print("".join((lst)))