Computer Science, asked by krishivkishorekakkar, 2 months ago

1. What output will be displayed if the value of a is 10 in the beginning? *
if a<=10:
a+=5
print (a)
else:
a-=5
print (a)
O 5
O 15
O 20​

Answers

Answered by blah24
0

Answer:

15

Explanation:

Since a<=10 is true, a+=5 will be evaluated.

10+5 =15.

So, the answer is 15.

Answered by pnvkhemka
0

So, At first

A = 10

Now if A<= 10 then we will add 5 to 10 making it 15,

∴ It will be 15 as A<= 10 it will not go to Else

Similar questions