Question: use python Write a Python program that asks the user whether he/she agrees to the contract. If the user enters Yes, print out the message

use python  use python Write a Python program that asks the user whether

Write a Python program that asks the user whether he/she agrees to the contract. If the user enters Yes, print out the message We have a deal!; if the user enters No, print out the message It's a pity!; otherwise, print out the melsage Invalid answer!. Hint: the if-elif-else decision structure must be used, and only one keyword if can be used. [Run your program in Python IDLE to verify if it works correctly as described above]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!