Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def chance(p, c):
- y, n = 0, 0
- for i in range(c):
- if random.randint(1,100) in range(p + 1):
- y += 1
- else:
- n += 1
- print("'Yes' - {} times, 'No' - {} times.".format(y, n))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement