0

How to create leaderboard codes 1 to 9 using string \n and """

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. ...

24th Oct 2021, 7:02 AM
Dharmik Velani
5 Antworten
+ 2
Dharmik Velani The hint in the challenge practically tells you how to do this, and the previous lesson is directly related to the solution. There are 2 options \n -> new line or ''' multiple lines '''
24th Oct 2021, 9:03 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
I think people don't realize this lesson comes before functions and variable , so they are not looking for you to use them. It has to be manual.
19th Aug 2022, 3:39 AM
TheKyMethod
TheKyMethod - avatar
+ 1
Post your code
24th Oct 2021, 7:11 AM
Atul [Inactive]
+ 1
Have you understood the question? This is a relative simple programming task. You need to know how a for loop works, what a variable is and how it works, what a string is and how to put together two strings to one string and how the input function works and how to convert an integer to a string and how to print the result. Then just put these things together in something that is called a code (do not put them together randomly). Start using you brain, test the trail and error method, and if you still got any problem, you are welcome back together with your code. You can find everything I write about above in the Python beginner course here on SoloLearn. Some useful things to look up: • input() • for loop • range() • print() • variables • strings • quotes • integers • indentation • concatenation of strings
24th Oct 2021, 7:22 AM
Per Bratthammar
Per Bratthammar - avatar
0
I know that but how to solve if you have codes for that please give me
2nd Nov 2021, 10:06 AM
Dharmik Velani