+ 3
[solved] Why is the program breaking line after every print statement
According to me this code should make a pyramid type pattern of the entered symbol but I don't know why there is a line break after every print statement How can I fix this?? https://code.sololearn.com/cSn544CvKi1o/?ref=app
5 Respuestas
+ 2
By default, python adds line breaks after print statements. To change that, add end='' to your print statement.
Your code is just: print(symbol)
Make it: print(symbol, end='')
+ 5
Arsenic line 11, you forgot to write one more "
+ 2
Thanks Daniel C
+ 2
Daniel C now it is raising syntax error
https://code.sololearn.com/cSn544CvKi1o/?ref=app
+ 2
Ok
Thanks 🍇 Alex Tusinean 💜