Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- objects = ["Maçã", "Uva", "Laranja", "Limão", "Tangerina"]
- new_list = []
- print("Items a sortear:")
- for i in objects:
- print(i)
- for i in range(100000):
- new_list.append(random.choice(objects))
- print("\nItems sorteados: ")
- for i in range(len(objects)):
- print(f"{objects[i]}: {new_list.count(objects[i])} vezes")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement