Created
July 12, 2020 22:55
-
-
Save arthuralvim/f88c52eb718da08f2979a8d7a68e9288 to your computer and use it in GitHub Desktop.
Máquina escolha minha pizza, por favor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from collections import Counter | |
random.seed(3) | |
pizzas = ['caipira', 'portuguesa', 'pepperoni', '4 queijos'] | |
print(Counter([random.sample(pizzas, 1)[0] for r in range(1000)])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment