I have just successfully completed the ‘Black Jack’ challenges.
By trying, I tried this code:
def is_blackjack(card_one, card_two):
ten_list = ['10', 'K', 'Q', 'J']
if card_one or card_two == 'A' and card_one or card_two in ten_list:
This attempt failed, the test module said ’ 4, 7 != black jack’. I was a bit surprised. I immediately tried this code by myself and actually, it returns ‘True’ if 4 and 7 are the arguments. How ist this possible? Neither 4 nor 7 fulfill the criteria I set in the code.