a=10 b=20 print (a+b) print ('a+b')
Answers
Answered by
7
Answer:
( a+b) =30 hope this answer help you
Answered by
9
If a= 10, b= 20, print (a+b) = 30, print ('a+b')= a+b.
- In the statement print (a + b), both values a and b are passed into the print function. That means a and both are constants having initial values 10 and 20 respectively. Therefore, print ( a+ b) will print (10 +20) = 30.
- In the statement print ('a + b'), both a and b are passed into the print function as it is. That means a and both act as variables. Therefore, print (' a+ b' ) will print 'a+b.'
Similar questions