The four outcomes are:
HH
HT
TH
TT
There are 4 outcomes that are possible. I've never seen anyone flip and edge, so that does not count.
Let C be the amount of compost
T be the amount of topsoil
Each compost cost = $25
Cost of C compost = 25C
Each topsoil cost = $15
Cost of T topsoil = 15T
Amount of compost + amount of topsoil = 10
C + T = 10 -------> Equation 1
cost of C compost + cost of T topsoil = 180
25C + 15T = 180 --------> equation 2
Solve the first equation for C
C + T = 10
C = 10 - T
Now plug it in second equation
25C + 15T = 180
25 ( 10 - T) +15T = 180
250 - 25T + 15T = 180 (combine like terms)
250 - 10 T = 180 (Subtract 250 on both sides)
-10T = 180 - 250
-10T = -70 ( divide by -10 on both sides)
T = 7
She purchased 7 cubic yards of topsoil .
So ram had 10 chocolates and i had 30 chocolates
because 1:3= 10:30
=> 4= 40
This is the following condition in order to get the specific output for this specific problem: if is_a_prime(n):<span> is_prime = True</span> <span><span>Now all you have to do is write is_a_prime().
For the hard code for this problem:
</span>if n == 2:<span>
is_prime = True
elif n % 2 == 0:
is_prime = False
else:
is_prime = True
for m in range (3, int (n * 0.5) + 1, 2):
if n % m == 0:
is_prime = False
<span>break.</span></span></span>
<span>
To add, a high-level programming language that is widely used for general-purpose programming<span>, created by Guido van Rossum and first released in 1991 is called Python.</span></span>