+ 15
How to print one line output using two or more print statements?
1. print ("hello"); print ("world"); 2. print ("hello") print ("world") Both gives same output as: hello world What should we do to give output as: hello world
5 Respuestas
+ 11
Here you go :))
print('hello ', end='')
print('world')
+ 13
Thanks Arb Rahim Badsa
+ 10
Thanks Lothar
+ 8
There is also the possibility of doing it this way:
print('hello', 'world!')
# or:
a = 'hello'
b = 'world!'
print(a,b)
- 1
hello