At Westonci.ca, we connect you with the answers you need, thanks to our active and informed community. Discover the answers you need from a community of experts ready to help you with their knowledge and experience in various fields. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.
Sagot :
Answer:
5/ 18
Explanation:
Given :
List A: [20,10,20]
List B: [40,10,30,20,40,30]
Chance that number drawn from list A is larger than or equal to that drawn dlfrom list B.
If:
A = 20
B ≤ 20 : [10,20] = 2
A = 10
B ≤ 10 : [10] = 1
A = 20
B ≤ 20 : [10,20] = 2
Probability = Required outcome / Total possible outcomes
Hence,
required outcome = (2 + 2 +1) = 5
Total possible outcomes = 3C1 * 6C1 = (3 * 6) = 18
Hence,
chance that the number we drew from list A is larger than or equal to the number we drew from list B
= 5 / 18
In this exercise we have to use the knowledge in computational language in python to describe a code that best suits, so we have:
The code can be found in the attached image.
To make it simpler we can write this code as:
import random
A=[20,10,20]
B=[40,10,30,20,40,30]
print(random.choice(A))
print(random.choice(B))
See more about python at brainly.com/question/19705654
We appreciate your visit. Hopefully, the answers you found were beneficial. Don't hesitate to come back for more information. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.