as the title indicates I am trying to assign two values to one key. I know that there are a few answers on this website out there but I am quite new to python and I don't really understand them. Therefore it would be great if you could explain why the answer is the answer. Anyway here is the code I am trying to execute
card = {'1 of hearts': '1', '2 of hearts': '2', 'ace of hearts':'1, 11'}
print(card['ace of hearts'])
As you may be able to see i am trying to create a simple blackjack game and so I want to assign both 1 and 11 to ace of hearts (not 1 or 11). However the code I have written above gives '1, 11'. Any help would be greatly appreciated
1 of heartscard?