0
help me out here :(
You 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 : 1. 2. 3. ...
8 Antworten
+ 5
dot = "."
var = int(input ("Enter range:")
for i in range(var):
print (i +dot + "\n")
+ 3
Please show your try first
+ 3
I tried this one
print ("""
1.
2.
3.
4.
5.
6.
7.
8.
9.
""")
+ 2
Add /n for adding new line is a sentence like this:
Print("1./n2./n")
+ 2
Use /n
+ 1
thank you
+ 1
Yup attila :)
- 3
Remove the space after print.
You wrote print ("""...""") instead of print("""...""")
If it still wont work check if there are extra spaces after the dots, and if there are, remove them. I hope I could help