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
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
Get step-by-step solutions from verified subject matter experts
