You need to make a program for a leaderboard. The program needs to output the numbers 1 to 9, each on a separate line, | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

You need to make a program for a leaderboard. The program needs to output the numbers 1 to 9, each on a separate line,

Please solve this anyone

26th Mar 2021, 4:40 AM
PAWAN KUMAR MAURYA
PAWAN KUMAR MAURYA - avatar
6 Answers
0
Check the hint! You can use the \n newline character to create line breaks, or, alternatively, create the desired output using three double quotes """. Review lesson 10.1
26th Mar 2021, 4:46 AM
ChaoticDawg
ChaoticDawg - avatar
0
print("""1.\n2.\n3.\n4.\n5.\n6.\n7.\n8.\n9.""")
1st Aug 2022, 6:56 AM
Kendra
- 1
This is the correct answer: x=("""1.\n 2.\n 3.\n 4.\n 5.\n 6.\n 7.\n 8.\n 9.\n""") print(x) you need to have an input!!
25th May 2021, 4:00 PM
Cristina
- 2
print(""" 1. 2. 3. 4. 5. 6. 7. 8. 9. """)
29th Dec 2021, 8:16 PM
Asamoah-Boakye Joseph
- 4
Show your attempt or do it all by yourself.
26th Mar 2021, 4:42 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
- 7
Print ("""1.2.3.4.5.6.7.8.9.""")
4th Apr 2021, 11:09 AM
Manish Kumar
Manish Kumar - avatar