203k views
3 votes
In Python

Write a prompt for the user: Please enter a decimal number:
Write a prompt for the user: Please enter another decimal number:
Display: The sum of the numbers is: [dec1 + dec2].

User JamesENL
by
5.1k points

1 Answer

7 votes

Answer:

x=input("Please enter a decimal number: "); y=input("Please enter another decimal number: "); print("The sum of the numbers is: " + (x+y) + ".")

User Pcrost
by
5.5k points