How to Add Two numbers in python??



 Adding direct value

 x=5

y=7

print(x+y)

Adding by user input()

x=int(input("enter first number:"))

y=int(input("enter second number:"))

z=x+y

print(z)







Comments

Popular posts from this blog

Interpretation vs Compilation

Become Healthy Goal - Python Program