Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- reszka, orzel = 0, 0
- for x in range(0, 1001):
- rzut = random.randint(0, 1)
- if rzut == 1:
- reszka = reszka + 1
- else:
- orzel = orzel + 1
- print("Reszka wypadła {} razy, a orzeł {}".format(reszka,orzel))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement