A lottery has 5 balls numbered 1 to 5.  We are interested in…

A lottery has 5 balls numbered 1 to 5.  We are interested in the first ball chosen.  These are the numbers of the first ball drawn in 13 lottos: [1, 3, 4, 3, 1, 5, 2, 3, 3, 1, 4, 1, 3].  Which of the following is a correct frequency chart showing the frequency of each ball, with a right-hand axis that shows estimated probabilities?

Write a function called is_identity that takes a list of lis…

Write a function called is_identity that takes a list of lists representing a matrix of integers as its only argument and returns True if it is an identity matrix, False otherwise. Identity matrices have all ones on the diagonal, zeroes everywhere else. Examples: