What will be the output of the following program?
a,b,c = 10,20,30
a,b,a = c+2,a+5,c+3
print(a,b)
Answers
Answered by
1
Answer:
yuvrajSingh class of the most popular kids to be a great day of the most popular kids to be a great day of the most popular
Answered by
5
a,b,c = 10,20,30
a,b,a = c+2,a+5,c+3
print(a,b)
Let's try to understand the program.
The value assigned to a, b and c is:
a=10
b=20
c=30
Now,their values are reallocated in the next line as follows:
a=c+2
=30+2=32
b=a+5
=10+5
=15
Again, the value assigned to a is:
a= c+3
= 30+3
=33
33 15
Similar questions