Answers for "python loop through range of numbers"

1

for loop in python with range

for i in range(-4,10):
    if i**2!=9 :
        print(i)
output:
-4
-2
-1
0
1
2
4
5
6
7
8
9
Posted by: Guest on November-20-2021
2

Range python iterate by 2

for i in range(0,10,2):
  print(i)
Posted by: Guest on May-20-2020

Code answers related to "python loop through range of numbers"

Python Answers by Framework

Browse Popular Code Answers by Language