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!
4 Answers
+ 1
Simba , thank you for that link to the correct discussion!
0
You can use '''text''' this then,
print("""1.\n2.\n3.\n4.\n5.\n6.\n7.\n8.\n9.""")
0
~Nez, Thank you! That worked