I would say the number varies.
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
Answer:
- num1=10
- num2 =20
- num3="30"
- sum = num1+num2+num3
- print (num1)
- print (num2)
- print (num3)
- print (sum)
The error is at line 3. The variable num3 has been assigned a string value with use of the quotes.
To fix the error, take away the quotes from the number 30, since the arithemetic operation cannot be carried out on the string in python program language.
Explanation: