Print no from 0 to 5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 15

Print no from 0 to 5

For i in range(5): Print(i __)

18th Jul 2020, 4:26 AM
Nikki Singh
5 Answers
+ 10
Thanks,I want only this answer.
18th Jul 2020, 8:04 AM
Nikki Singh
+ 6
for i in range(0,6): print(i+1)
19th Aug 2020, 10:45 AM
FᄂӨЯΣПᄃ BΛЯDΉI
FᄂӨЯΣПᄃ BΛЯDΉI - avatar
+ 3
To print numbers from 1 to 5 Use this: for i in range (1,6): print(i) If you want to print it in the same line then: for i in range (1,6): print(i,end=" " )
18th Jul 2020, 4:28 AM
Arctic Fox
Arctic Fox - avatar
18th Jul 2020, 4:37 AM
Muhammed Rifayee
Muhammed Rifayee - avatar
+ 2
Indentation error due to not following spaces required.
18th Jul 2020, 6:32 PM
shubham kumar
shubham kumar - avatar