Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=input("Ile razy chcesz rzucic dwiema kostkami?")
- def rzucaj_kostkami(ile_razy, iloma_kostkami):
- for i in range(ile_razy * iloma_kostkami):
- yield random.randint(1, 6)
- results = list(rzucaj_kostkami(int(x), 2))
- suma = sum(resuts)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement