Computer Science, asked by raunakrsethi, 11 months ago

X = 2
fori in range(x):
X += 1
print(x)



what is the output​

Answers

Answered by allysia
1

Answer:

The output will be:

---------------------------------------------

3

4

---------------------------------------------

Explanation:

Let me correct the codes first:

-------------------------------------------

x=2

for i in rage (x):

  x+=1

  print(x)

-------------------------------------------

The output will be:

---------------------------------------------

3

4

---------------------------------------------

Similar questions