+ 1

Am I missing something?

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. ... I did use """ or \n. The output is same. But the is not correct answer.

9th Nov 2021, 10:20 AM
Jeffrey Lee
6 Antworten
+ 4
c = 0 for i in range(10): c += 1 print(f"{c}.") Try this
9th Nov 2021, 10:44 AM
Mosi B.
Mosi B. - avatar
+ 3
I don't understand your error right. Can you share your code so that me or someone else can see what's wrong?
9th Nov 2021, 10:32 AM
Rishi
Rishi - avatar
+ 2
Hi, sorry. It is weird. I exit the program. And login again now the output is correct. Thanks
9th Nov 2021, 10:39 AM
Jeffrey Lee
+ 2
What do you mean
9th Nov 2021, 11:20 AM
Rajdeep Singh
Rajdeep Singh - avatar
+ 2
Rajdeep Singh his code didn't work when asking the question, but now it's working fine
9th Nov 2021, 11:41 AM
Rishi
Rishi - avatar
+ 2
Rishi ok
9th Nov 2021, 12:17 PM
Rajdeep Singh
Rajdeep Singh - avatar