DevJourney · code I wrote while learning

sum-of-two-numbers.py

164 B
x = float(input("Enter the first number: "))
y = float(input("Enter the second number: "))
s = x + y
print("Sum of the numbers {0} and {1} is {2}".format(x, y, s))