0

Using using line breaks for python

Here’s the code. print('''1.\n2. \n3.\n4.\n5.\n6.\n7.\n8.\n9.''') For some reason it’s not showing that I have the right answer even though the output matches the answer can anyone help please? Thanks

20th Jan 2022, 10:58 PM
Rafael
2 odpowiedzi
+ 2
I see a space after "2.". Try removing that
20th Jan 2022, 11:00 PM
Slick
Slick - avatar
+ 1
Thank You!
20th Jan 2022, 11:24 PM
Rafael