4. Consider the following loop:
j = 10 while
S>=5:
print
x"
Which of the following for loops will generate the same output as the
loop shown previously?
a) for j in range(-1,-5,-1)
print("x")
b) for j in range(0,5): print("x")
c) for j in range(10,-1,-2):
print("x")
d) for j in range(10,5) print("x")
Answers
Answered by
2
Answer:
I think
j=10
j>=5
print j
is correct
Similar questions