The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot: 1. 2. 3. Using \n or """ | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

The program needs to output the numbers 1 to 9, each on a separate line, followed by a dot: 1. 2. 3. Using \n or """

26th Apr 2022, 3:57 AM
Nibir Nath
Nibir Nath - avatar
2 Respuestas
0
Nibir Nath show us your code attempt or do this👇👇👇 use a for loop from 1 to 9 , print the number and dot print new line
26th Apr 2022, 4:03 AM
NonStop CODING
NonStop CODING - avatar
0
for i in range(1,10): print(str(i)+".")
26th Apr 2022, 5:43 AM
Mohamed Ayaou