+ 1
good code?
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. for this problem this code is a good code? print("""1. 2. 3. 4. 5. 6. 7. 8. 9.""")
3 Answers
+ 7
Rainbow , nice code for this task! but i have my doubts that the op has any benefit as he is still in the learning process of python. just giving a code without any comments is difficult to understand.
from my point of view, a sample with a for loop and also some explanations will fit the needs of the op in a appropriate way.
Pleas do not misunderstand my post. thanks!
+ 8
Yes, your code can get better if you use a for loop instead of typing all the numbers.
+ 1
i think it can better than