Day 3: Drawing Marbles | 10 Days Of Statistics | HackerRank Solution

Hello coders, today we are going to solve Day 3: Drawing Marbles HackerRank Solution which is a Part of 10 Days of Statistics Series.

Day 3: Drawing Marbles

Objective

In this challenge, we’re reinforcing what we’ve learned today.

Task

A bag contains 3 red marbles and 4 blue marbles. Then, 2 marbles are drawn from the bag, at random, without replacement. If the first marble drawn is red, what is the probability that the second marble is blue?

Solution – Drawing Marbles

The Correct answer is print(“Result: {}”.format(2/3)).

Disclaimer: The above Problem (Drawing Marbles) is generated by Hacker Rank but the Solution is Provided by CodingBroz. This tutorial is only for Educational and Learning Purpose.

Leave a Comment

Your email address will not be published. Required fields are marked *