Aman is sorting marbles from a bag. He picks a marble from the bag and checks the colour. If it is blue or red, it is removed from the bag. All other coloured marbles remain in the bag. Write a program for this scenario. Assume that there are 10 marbles in the bag. User needs to input the colour of the marble being picked each time. The program needs to display the number of marbles remaining in the bag. in python
Answers
Answered by
0
Explanation:
Given in a bag contains five green marbles, three blue marbles, two red marbles and two yellow marbles
(a)The four colour out comes not equally because the number of four colours balls are different.
(b) Total ball =5+3+2+1=11
Then probability (green) =
11
5
Then probability (blue) =
11
3
Then probability (red) =
11
2
Then probability (yellow) =
13
1
(c) The sum of probabiilites =
11
5
+
11
3
+
11
2
+
11
1
=
11
11
=1
Similar questions
Math,
3 months ago
Hindi,
3 months ago
Political Science,
3 months ago
Environmental Sciences,
6 months ago
English,
6 months ago
History,
10 months ago
Math,
10 months ago
Hindi,
10 months ago