I found an additional challenge for page 10/10 in Using Dictionaries (the Review page):
When all 6 instructions are met, it is possible for the program to generate an additional, redundant “the” before any tarot card that begins with “The”.
For example, the final output of the program will print:
Your past is the Death card.
Your present is the The Fool card.
Your future is the Wheel of Fortune card.
Challenge: what additional line(s) of code can you enter to ensure no tarot card will repeat the word “the”?
Answer:
For key, value in spread.items():
if value.count(“The”) >= 1:
print("Your " + key + " is " + value + " card.")
else:
print("Your " + key + " is the " + value + " card.")
prints:
Your past is the Death card
codecademy says:
Expected to see Your past is the Death card. printed.
how is the output not the same as ‘expected’?
wait, is it the period?, ■■■■, they’re so tiny it makes me angry at the fact it wants me to do exactly what it says