+ 3
Please I need help with a python problem!
I need to make a program for a leaderboard The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot: Check the code below for the error print ('1. \n2. \n3. \n4. \n5. \n6. \n7. \n8. \n9.')
3 Respuestas
+ 2
Remove spaces after dot and try then.
Hope it helps..
+ 3
Thanks...
+ 1
c = 0
for i in range(10):
c += 1
print(f"{c}.")
Check this, more control and flexibility