How to print numbers in specific range with Python

2 Answers

0 votes
for i in range(10):
    print(i)


'''
run:

0
1
2
3
4
5
6
7
8
9

'''

 



answered Nov 23, 2018 by avibootz
0 votes
for i in range(3, 7):
    print(i)


'''
run:

3
4
5
6

'''

 



answered Nov 23, 2018 by avibootz
...