0
Strings
print('Hello'*5) this is my program, it's giving the output as HelloHelloHelloHelloHello but what should i do to print the same with spaces between each Hello.
3 Answers
+ 4
Try
print('Hello '*5)
0
print('hello '*5) or
print('hello\t'*5) -> this will create 8 spaces
And if you want to print hello on every next line so do this print('hello\n'*5)