Line breaks? | Sololearn: Learn to code for FREE!
0

Line breaks?

During a quiz i typed the code print("1. /n 2. /n 3. /n 4. /n 5. /n 6. /n 7. /n 8. /n 9. /n") to try and get 9 different lines yet it told me i did it wrong... Can anyone tell me what i did wrong here. I want it to look like this. 1. 2. 3. 4. 5. 6. 7. 8. 9. It said i was close... :/

6th Feb 2021, 12:43 AM
Khiam Major
Khiam Major - avatar
4 ответов
0
Khiam Major no problem. Happy coding 😉
6th Feb 2021, 1:24 AM
Brain & Bones
Brain & Bones - avatar
+ 2
i dont know what quiz you are talking about but the break line goes the other way. Like this. \n
6th Feb 2021, 1:20 AM
Brain & Bones
Brain & Bones - avatar
+ 1
Khiam Major you should set the best answer mark to the... best answer: actually you've marked the last answer (and didn't upvote anything)... However, if you've done some research before posting, you could have found this recent question: https://www.sololearn.com/discuss/2687953/?ref=app maybe you could help here, and maybe you could have got help from...
6th Feb 2021, 1:56 AM
visph
visph - avatar
0
Its python i believe and yep thats probably it. Stupid mistake thanks guys!
6th Feb 2021, 1:22 AM
Khiam Major
Khiam Major - avatar