Write a Python program to enter two numbers and find their sum.
Write a Python program to enter two numbers and find their sum.
Solution :-Â
StaticÂ
a = 10
b = 20
c = a+b
print("The sum of 2 number is :- ",c)
Solution
DYNAMIC
a = int(input("Enter the First number :- "))
b = int(input("Enter the Second number :- "))
c = a+b
print("The sum of 2 number is :- ",c)
Solution