Computer Science, asked by shachikoshta, 8 months ago

1. What will be the output of the following
Python code
i=0
print (i)
i=i+1
A 1 2 3
B 0 1 2 3
C 0 1 2
error​

Answers

Answered by Damini9888
0

Answer:

0

Explanation:

i = 0 The value of i is 0.

print (i) So, 0 is printed in the output.

i = i + 1 The value of I is incremented by 1.

So, i = 0 + 1 = 1.

Hence, only 0 is printed. Nothing else other than that although at last the value of i was 1 because any loop is not used in it.

Similar questions