Pages

PYTHON

PYTHON AND PROBABILITY

  1. Suppose you have a fair six-sided die. Now suppose that you throw the die three times. What is the probability that you will get :
  2. Two dice are rolled. We define s as the sum of the values on the two faces.
  3. Find the probability of obtaining at least one 6 when 5 dice are thrown.
  4. What is the probability of drawing an ace or a heart from a pack of 52 playing cards?
  5. Box u = 1 contains 1 red ball and 3 black balls. Box u = 2 contains 1 red ball, 1 white ball, and 1 black ball. Box u = 3 contains 1 red ball and 1 black ball.
  6. Three identical skipping ropes are dropped in a heap. The six free ends of the ropes are picked up by three people—each person picks up one free end with his right hand and another free end with his left. Then they all step away from each other. 

PYTHON AND SEQUENCE GENERATORS

  1. Golomb sequence or Silverman's sequence

1 comments:

Receive all updates via Facebook. Just Click the Like Button Below...