Challenge
Swipe to start coding
Let's imagine one situation that may be real for you. You have a tasty basket with:
5cookies with a cherry jam,5chocolate cookies,10chocolate candies,5chocolate bars,15biscuits,10bottles of lemonade.
Calculate the probability that you will randomly pull out an item that includes chocolate, or a cookie.
We can divide our food into influential groups:
- The first one: cookies (ones with cherry jam and chocolate ones).
- The second one: is chocolate items (chocolate bars, candies, and chocolate cookies).

Follow the algorithm:
- Calculate the probability of pulling out a cookie.
- Calculate the probability of pulling out item that includes chocolate (chocolate sweet).
- Calculate the probability of pulling out a chocolate cookie.
- Calculate the resulting probability.
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Resumir este capítulo
Explicar el código en file
Explicar por qué file no resuelve la tarea
Genial!
Completion tasa mejorada a 3.7
Challenge
Desliza para mostrar el menú
Swipe to start coding
Let's imagine one situation that may be real for you. You have a tasty basket with:
5cookies with a cherry jam,5chocolate cookies,10chocolate candies,5chocolate bars,15biscuits,10bottles of lemonade.
Calculate the probability that you will randomly pull out an item that includes chocolate, or a cookie.
We can divide our food into influential groups:
- The first one: cookies (ones with cherry jam and chocolate ones).
- The second one: is chocolate items (chocolate bars, candies, and chocolate cookies).

Follow the algorithm:
- Calculate the probability of pulling out a cookie.
- Calculate the probability of pulling out item that includes chocolate (chocolate sweet).
- Calculate the probability of pulling out a chocolate cookie.
- Calculate the resulting probability.
Solución
¡Gracias por tus comentarios!
single