0
You need to make a program for a leaderboard. The program needs to output the numbers 1 to 9, each on a separate line
Can somebody help me .I need your guys help .
3 Respuestas
+ 3
Cheang Zi Yi
I believe that this challenge is associated with the tutorial regarding newlines \n and doc strings which are indicated by 3 apostrophes '''
So there are 2 ways to resolve this task using the tutorial skillset.
print("1.\n2.\n3.\n.....etc")
or
print('''1.
2.
3.
....etc''')
Play with both concepts in playground and submit the one you like
+ 1
Have you tried self .This is simple task you need to learn about looping statement and print statement how it works see this one
for i in range(1,10)
print(i, end='\n')
- 1
print('\n'.join( str(i) + '.' for i in range(1,10)))