Computer Science, asked by shikha0711, 4 months ago

18. What is the output of the following program
a=2
a=a+2
a= a* 2
print(a)​

Answers

Answered by son89
0

Answer:

8

Explanation:

because output always take the last value of a that is 8

Answered by anushka070603
7

Answer:

hi,

Explanation:

a=2 # declaring that a is equal to 2

a=a+2 # gives a=2+2=4

a= a* 2 # gives a=4*2=8

print(a)​ # returns answers as 8

hence the answer is 8

:)

Similar questions