Why, when trying to output a phrase from functions in the "print", it is output from a new line?¿ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why, when trying to output a phrase from functions in the "print", it is output from a new line?¿

When you try to output a phrase from a function through the "print" it is displayed in this line, how can I fix this in this code https://code.sololearn.com/c6Dl3V5RBZwV/?ref=app

11th Jan 2018, 1:00 PM
Тимофей TreShk0
Тимофей TreShk0 - avatar
1 Answer
+ 1
print automatically adds new line after the text you print to avoid this do print(phrase, end="")
11th Jan 2018, 3:01 PM
michal