,
val1 = 100.99 val2 = 76.15 # Adding the two given numbers sum = float(val1) + float(val2) # Displaying the addition result print("The sum of given numbers is: ", sum)
The sum of given numbers is: 177.14
#getting input from user val1 = input("Enter any number: ") val2 = input("Enter any number: ") # Adding the two given numbers sum = float(val1) + float(val2) # Displaying the addition result print("The sum of given numbers is: ", sum)
Enter any number: 20 Enter any number: 35 The sum of given numbers is: 55.0