0

Help with code project in Python for beginners

Can someone help me see what I'm missing please? We are supposed to make a leaderboard that goes from 1-9 with a period after each number and each number should be on a new line. My code: print ('1. \n2. \n3. \n4. \n5. \n6. \n7. \n8. \n9.') When I run a check on that, my output looks just like the expected outcome except that I have more room under "9." than the expected outcome shows Any help would be greatly appreciated!

14th Jan 2022, 8:37 AM
Corey Karimian
Corey Karimian - avatar
4 ответов
+ 1
Simba , thank you for that link to the correct discussion!
14th Jan 2022, 8:55 AM
Corey Karimian
Corey Karimian - avatar
0
You can use '''text''' this then, print("""1.\n2.\n3.\n4.\n5.\n6.\n7.\n8.\n9.""")
14th Jan 2022, 8:43 AM
NEZ
NEZ - avatar
0
~Nez, Thank you! That worked
14th Jan 2022, 8:54 AM
Corey Karimian
Corey Karimian - avatar