Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 4
What have you tried so far?
+ 4
You're missing print statement in your 2nd solution
+ 4
Guys thks it's finally solved🙌🙌
+ 3
Leon Barigye ,
i think you are talking about python. to generate the number from n to n1, you can use:
▪︎while loop with a counter variable that will be incremented
or
▪︎a for loop with range of numbers
but as i have seen in your profile that you joined sololearn and started with python just 2 days ago. so you may go forward a bit too fast, because it takes some time to get familiar with all this new things
. you may go back in the tutorial to repeat some parts and also do some basic exercises.
after that, it may be easier for you to complete the task.
happy coding and good success!
+ 2
Specify the language please
+ 2
David Ashton its the leaderboard project from the Python beginner course 👍😉
+ 1
I tired print(1.\n 2.\n 3.\n 4............\n 9)
+ 1
I also tried ("""1.
2.
3.
4.
5.
6.
7.
8.
9.""")
+ 1
Lothar l didn't get your solution
+ 1
Leon Barigye ,
i gave you some hints, but to make a solution is your part
happy coding!
+ 1
If you save your code and mark it Public, then others can see it too.
+ 1
for i in range(1,10):
print(i)
python
+ 1
try print(i , ".")
+ 1
It looks like:
1 .
2 .
+ 1
have u tried this print("1.")
print("2.")
+ 1
Use
Cout<<endl;
+ 1
Leon Barigye It seems your question appears to be an assignment. Please show us your attempt and use the 8 rules to get help from the community.
https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
*can be a code coach solution which is meant for you to do to help you establish your skills abilities and where you need to learn... not the community
*one issued by a school or other institution
*one issued or created by another platform
*one that appears to be in the form of a challenge that was created by you or somewhere else.
Your question has been reviewed and will be marked for deletion.
https://www.sololearn.com/Discuss/1316935/?ref=app
0
Somil Khandelwal and where are the dots in your solution?
0
print ("1.\n2.\n3.\n4.\n5.\n6.\n7.\n8.\n9.")
0
Somil Khandelwal Yeah, nice, but does not work 👍😉