Question: print(First domino.) left1 = int(input(left value: )) print() right1 = int(input(right value: )) print() print(Second domino.) left2 = int(input(left value: )) print() right2 = int(input(right
print("First domino.") left1 = int(input("left value: ")) print() right1 = int(input("right value: ")) print() print("Second domino.") left2 = int(input("left value: ")) print() right2 = int(input("right value: ")) print() matched = False flip1 = left1 != right1 flip2 = left2 != right2 if # Your code goes here : print("Match without flipping") matched = True if # Your code goes here : print("Match after flipping first domino") matched = True if # Your code goes here : print("Match after flipping second domino") matched = True if # Your code goes here : print("Match after flipping both dominos") matched = True if # Your code goes here : print("No match")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
