Can you help fix this code?
|
|
carddict = [
"----------------------------"
"| WILD |"
"| |"
"| |"
"| Get Errored!! |"
"| ERROR!!!!!!!! |"
"| = |"
"| { } |"
"| « « |"
"| «e“ |"
"| |"
"| |"
"| |"
"[ WILD ]"
"----------------------------"
]
def print_card(dictcard):
for card in len(dictcard):
print(f"\n{card}\n")
print_card(carddict)
Error:
Traceback (most recent call last):
File "Documents/UNO® Card Game ' Get Errored WILD card.py", line 21, in <module>
print_card(carddict)
File "Documents/UNO® Card Game ' Get Errored WILD card.py", line 19, in print_card
for card in len(dictcard):
TypeError: 'int' object is not
Also i want to print 1 at a time. Can you please help?