At Westonci.ca, we connect you with the best answers from a community of experienced and knowledgeable individuals. Join our platform to connect with experts ready to provide precise answers to your questions in various areas. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.
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
Visit us again for up-to-date and reliable answers. We're always ready to assist you with your informational needs. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.