I have a list called deck with 16 items in it:
deck = range(0,8)*2
I need to create a list that has the same number of entries as the deck list, but initially, they're all set to False
Say the name of the new list is new_list
How do I create this list without typing False 16 times? When I try this, I get index out of range error.
deck = range(0,8)*2
new_list = []
for card in deck:
new_list[card] = False
Thanks