6 odpowiedzi
+ 10
To create a new line break use "\n" this symbol.
+ 2
print has an "end" attribute with a default value of "\n", you can change it to anything you want just by modifying it like this:
print(end=value*)
*value can be any string, it will be printed in the end of print statement.
print also has an attribute "sep" which will work similar, but after each comma separated value in the print.
+ 2
Taͣlhͪaͣ_ͥ Sometimes I confuse \ and /, if it was the problem. \ is for escaping \n, / is for division x/y.
+ 1
Yes! i have been using "\n" but this is not working on my console... that might be some other issue with that.
Anyway, thanks.
💐💐💐
+ 1
Can you share the code, because it does work in SoloLearn
+ 1
Seb TheS i think the problem was placement of \n, that is working well on sololearn. Anyway i needed just to confirm abt it.
Now at least I am sure, that problem is not in \n
There could be some other thing to see there. Anyway thanks for helping dear :)