+ 3

Lesson 13 doesn’t accept correct answer

It was asking me to list numbers 1-9 each on new line. I have wrote the code print() using \n starting from number 2 and it displays correct output, but SoloLearn does not think it’s correct answer. Can anyone help?

27th Feb 2021, 11:05 PM
Evaldas Oleinikas
Evaldas Oleinikas - avatar
7 Respuestas
+ 5
remove spaces ^^ print(“1.\n2.\n3.\n4.\n5.\n6.\n7.\n8.\n9.”)
27th Feb 2021, 11:29 PM
visph
visph - avatar
+ 1
you probably output some unexpected spaces ^^
27th Feb 2021, 11:14 PM
visph
visph - avatar
+ 1
Did you follow each number with a dot?
27th Feb 2021, 11:20 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
dont know how to insert code i wrote so I’ll just write it again here. print(“1. \n2. \n3. \n4. \n5. \n6. \n7. \n8. \n9.”)
27th Feb 2021, 11:28 PM
Evaldas Oleinikas
Evaldas Oleinikas - avatar
+ 1
ahhh
27th Feb 2021, 11:30 PM
Evaldas Oleinikas
Evaldas Oleinikas - avatar
0
Hi! You can show your code in this topic?
27th Feb 2021, 11:17 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
I've already found your assignment. pay attention to step 10.1 of the lesson Newlines
27th Feb 2021, 11:22 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar