help me out here :( | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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. ...

27th Dec 2021, 8:22 AM
Shubham Gawai
Shubham Gawai - avatar
8 ответов
+ 5
dot = "." var = int(input ("Enter range:") for i in range(var): print (i +dot + "\n")
27th Dec 2021, 5:59 PM
Saad Khan
Saad Khan - avatar
+ 3
Please show your try first
27th Dec 2021, 9:27 AM
Sousou
Sousou - avatar
+ 3
I tried this one print (""" 1. 2. 3. 4. 5. 6. 7. 8. 9. """)
27th Dec 2021, 11:10 AM
Shubham Gawai
Shubham Gawai - avatar
+ 2
Add /n for adding new line is a sentence like this: Print("1./n2./n")
28th Dec 2021, 11:52 AM
Vishal Adithya
Vishal Adithya - avatar
+ 2
Use /n
28th Dec 2021, 1:57 PM
Vishal Adithya
Vishal Adithya - avatar
+ 1
thank you
27th Dec 2021, 11:08 AM
Shubham Gawai
Shubham Gawai - avatar
+ 1
Yup attila :)
29th Dec 2021, 4:13 AM
Shubham Gawai
Shubham Gawai - avatar
- 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
28th Dec 2021, 7:39 PM
Attila