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. ...
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 '''
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.
Post your code
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
I know that but how to solve if you have codes for that please give me