216k views
21 votes
Use a while loop to output the even number from 100 to 147? This is python

User Shamila
by
6.5k points

1 Answer

7 votes

Answer:

def main():

i = 100

while(i < 148):

print(i)

i += 2

main()

Step-by-step explanation:

User SethWhite
by
6.8k points