Question: In this program, you will check whether two playing cards match. Complete the if statement in the following code with the required condition. Empty print

In this program, you will check whether two playing cards match. Complete the if statement in the following code with the required condition. Empty print statements are included for output formatting.534896.3972504.qx3zqy7
In this program, you will check whether two playing cards match. Complete the if statement in the following code with the
required condition. Empty print statements are included for output formatting.
print("Enter first card: ")
value1= input("value (#, Ace, Jack, Queen, King): ")
print()
suit1= input("suit (hearts, spaces, clubs, diamonds): ")
print()
print("Enter second card: ")
value2= input("value (#, Ace, Jack, Queen, King): ")
print()
suit2= input("suit (hearts, spaces, clubs, diamonds): ")
print()
if # Your code goes here:
print("Different cards")
else :
print("Same card")
 In this program, you will check whether two playing cards match.

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!