+ 1
Can some one help me with this
Fill in the blanks to create a for loop that prints only the even values in the range: i in range(0, 20, 2): print(__) I'm not sure what's supposed to be on the __
19 Answers
+ 10
for i in range(0, 20, 2):
print(i)
# For your question
+ 7
for i in range(1,10,2):
print("i =",i)
#i = 1
#i = 3
#i = 5
#i = 7
#i = 9 are output.
+ 7
Sorry
Re ans:
for i in range(2,11,2):
print("i =",i)
#output
i = 2
i = 4
i = 6
i = 8
i = 10
+ 6
for i in range(start,stop,step):
print()
+ 3
for
i in range(0, 20, 2):
print(i)
+ 3
for i in range(0, 20,2):
print(i)
+ 3
for i in range(0, 20, 2):
print(i)
+ 2
I mean:
E.G:
5+2=__
__=7
+ 2
Now I know:
i
+ 2
Fill in the blanks to create a list of numbers multiplied by 10 in the range of 5 to 9.
+ 2
for
2
i
+ 2
1. for
2. 2
3. i
+ 2
for
2
i
+ 2
for i in range(0, 20, 2):
print(i)
it's right answer
+ 1
look on > https://www.sololearn.com/Play/JUMP_LINK__&&__Python__&&__JUMP_LINK > control structures > for loops > 3rd Question
+ 1
I did not see any answer
+ 1
can somebody explain to me why this outputs only even numbers between 0 and 20? I don't quite get why it does that.
+ 1
for i in range(start,stop,step):
print()
0
for i in range(0, 20, 2):
print(i)