Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- player1_results = []
- player2_results = []
- for _ in range(10):
- doors1 = [1, 0, 0]
- # shuffle doors
- random.shuffle(doors1)
- # player1 picks a door
- player1_choice = random.choice(doors1)
- player1_results.append(player1_choice)
- # new doors for player 2 wit two options
- doors2 = [1, 0]
- random.shuffle(doors2)
- player2_choice = random.choice(doors2)
- player2_results.append(player2_choice)
- print(player1_results)
- print(player2_results)
Advertisement
Add Comment
Please, Sign In to add comment