Computer Science, asked by kaberighosh222, 1 month ago

for i in range(1,8): print(i) i+=2 find output​

Answers

Answered by prateek985
0

Answer:

1 3 5 7

Explanation:

in the range from 1 to 8 the value of i will start from 1 a d since the given iteration is 2+ of each time so the value of i(=1) will increase by 2 each time hence next value is 3 then next is 5 and last but not the least one is 7 coz again I'll say the range is from 1 till 8....so its just needed u to print all the odd numbers starting from 1 to 8

Similar questions