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 help

26th Sep 2022, 4:10 PM
Nupur Trivedi
Nupur Trivedi - avatar
3 Answers
+ 5
Post your code attempts so we can help out!
26th Sep 2022, 4:11 PM
Apollo-Roboto
Apollo-Roboto - avatar
+ 2
You just need to learn basics how loop works and how to take input after that you will be able to solve this problem
26th Sep 2022, 4:56 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
a=int(input()) b=0 for i in range(1,a): b=b+1 print(b) I think it works... You just go through the basic syntaxes in python beginners....it will be helpful...
27th Sep 2022, 10:10 AM
Venkatesh
Venkatesh - avatar