I am trying to have the user type in a suite and if the suite isnt in the dictionary then it prints not in the dictionary, but it the input is a suite then it prints the suite
I have tried everything I know how to do
a = {'hearts':"hearts",'diamonds':"diamonds",'spades':"spades",'clubs':"clubs"}
while b=input("Pick a Suite"):
if a = b:
print(b)
else:
print(a, "not a suite")
print("foo not a suite")
again if the user types in right suite then it will print the suite if not it will print "foo not a suite"