- 1
what is the python code to create a list of even numbers b/w 100 and 200 using range function and dispaly it using while and for loop
5 Answers
+ 5
for x in range(100,200,2):
print(x)
0
You just answered your own question. Use while looops and range functions đ
0
i need the syntax maahn!
0
Nobody here wants to do your homework for you.
0
It's a another way:
nums=list(range(100,200,2))
i=1
l=len(nums)
while i<=l:
print(nums[i])
i+=1
N.B: But i prefer damilare lamidi's way. :)