say i had a program like this:
a = raw_input("Type either ball, cat, dog, or eat:")
if a == "ball":
print "abcd"
elif a == "cat":
print "abcd"
elif a == "dog":
print "wxyz"
elif a == "eat":
print "wxyz"
basically if you were type ball or cat it would print abcd
and if you were to type dog or eat it would print wxyz
is it possible to not have to repeat typing: print "abcd" 2 times
like:
if a = "ball" or "cat":
print "abcd"
i know its not done like that i just wanna know if it can be done somehow