Answer:
first_item = float(input("Enter the cost of your first item: "))
second_item = float(input("Enter the cost of your second item: "))
total = first_item + second_item
payment = float(input("Enter the amount you will be paying: "))
if payment < total:
print("You still owe: " + str(total - payment))
else:
print("Thank you. You will receive " + str(payment - total))
Explanation:
- Get the item costs from the user
- Calculate the <em>total</em>
- Get the <em>payment</em> from the user
- Compare the <em>payment</em> and <em>total </em>and print the appropriate message