I want to print one continuous message with two lines of code using print, how can I do this?
print('Hello how are you')
print('today?')
But this gives me
Hello how are you
today?
While I want
Hello how are you today?
Use end=' '
to replace the newline with a space:
print('Hello how are you', end=' ')
print('today?')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With