Skip to content

Instantly share code, notes, and snippets.

@arthuralvim

arthuralvim/pizza.py

Created Jul 12, 2020
Embed
What would you like to do?
Máquina escolha minha pizza, por favor.
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