Q.Write a program that generates the following output: 5109 Assign value 5 to a variable using assignment operator (=) multiply it with 2 to generate 10 and subtract 1 to generate 9.


You can understand by Watching video :-



Answer :-

a = 5
b = a*2
c = b-1
print(a)
print(b)
print(c)

Output :-

5
10
9

>>>

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post