0
How can I have each of my outputs on different lines?
Every time that I do for checking my code to see if everything is set correctly my outputs stays on the same line this is so annoying any ideas ?
6 Answers
+ 2
Jorick Marghem ,
without having seen your code and without task description we can only guess what issue you have.
> please put your code in playground, save it there an then create a link to this code.
> post this link here.
> also provide a brief task description.
+ 2
First of all guys I want to say thx for the explaination you have giving me I will do as your telling me so u guys can have a closer look đ
+ 1
Show us your code and we can tell you precisely where the issue is. But in general ...
Every print statement appears on it's own line. If you are doing things like:
print("a b c")
then a b c will appear on one line.
If you separate it like:
print("a")
print("b")
print("c")
The Python print command also supports inline newlines, so you could alternatively print it like this:
print("a\nb\nc\n")
Everywhere a \n appears will convert into a new line.
Finally, if you are adding the parameter end="" to your print statement, you are instructing the print command to not include new lines.
print("a", end="")
print("b", end="")
print("c", end="")
That will give you: a b c
Without seeing your code, it's hard to know which issue you are dealing with.
Suggestion: Put each line in a separate print statement and do not add the: end=""
+ 1
I come back towards u about my coding issue that I have, funny thing is in the playground mode it displays itself perfectly but when I have to do the same exercise in the learning mode it does not display itself on separated outputs with the print command I don't get why ? Here the outcome of my work in playground mode that works totally finehttps://www.sololearn.com/en/compiler-playground/cZ9Z7Bf2hr7O
+ 1
Jorick Marghem ,
the link is not working for me (android app), so i suppose you are on windows / web.
can you just copy paste your code here ?
thanks!
0
For the past forty years, Une Ligne Paris has carved out a distinctive niche in the realm of fashion jewelry. Drawing inspiration from global jewelry trends and the captivating allure of ïŒle style parisien,ïŒ our creations are tailored for the woman who seizes every opportunity to radiate, embodying a free-spirited, charming, and carefree demeanor. https://www.uneligne.ch/