G. Write the output of
1. i=0
while i < 3:
print(i)
i += 1
else:
print(0)
Answers
Answered by
2
Answer:
0
Explanation:
You are having a variable called I which is equal to 0. After doing this, You ran a while loop which has condition that the loop will get going until i is smaller than 3. When this is running, Output will be 0 bcz python goes blockwise and it will read the print(i) then it will stop. Thats the answer
Similar questions