Computer Science, asked by piyuroxx9963, 11 months ago

Write the output of the given Python code :
a = 0
a+ =2
print (a)

Answers

Answered by Rakzhana
6

Answer:

answer is 0 for this question

Answered by mindfulmaisel
14

PYTHON PROGRAM

Answer:

a = 0

a+ =2

print (a)

Output:

2

Explanation:

At first in initial step "a" is defined as "0" , where in next step "a+=2" also refers to the form "a=a+2" i.e "a=0+2" which automatically assigns the value of "a" is equal to 2. Then the last statement "print(a)" is used to display the a to the output screen.  Where "print()" in-bulit function used to display all the elements and statements to the output screen.

TO KNOW MORE ABOUT:

1.Different between displaying and printing method in python

https://brainly.in/question/13411815

2.Give the output of the following: int a=0,b=30,c=40; a=--b+c++ + b; system.out.print(''a='' + a);

https://brainly.in/question/1191193

Similar questions