Answer:
![Fraction = \frac{5}{7}](https://tex.z-dn.net/?f=Fraction%20%3D%20%5Cfrac%7B5%7D%7B7%7D)
Explanation:
Given
![black: red = 2 : 5](https://tex.z-dn.net/?f=black%3A%20red%20%3D%202%20%3A%205)
Required
Determine the fraction of red
First, we calculate the total ratio.
![Total = black + red](https://tex.z-dn.net/?f=Total%20%3D%20black%20%2B%20red)
Substitute values for black and red
![Total = 2 + 5](https://tex.z-dn.net/?f=Total%20%3D%202%20%2B%205)
![Total = 7](https://tex.z-dn.net/?f=Total%20%3D%207)
The fraction of red is then calculated as:
![Fraction = \frac{Red}{Total}](https://tex.z-dn.net/?f=Fraction%20%3D%20%5Cfrac%7BRed%7D%7BTotal%7D)
![Fraction = \frac{5}{7}](https://tex.z-dn.net/?f=Fraction%20%3D%20%5Cfrac%7B5%7D%7B7%7D)
To make the perfect music video, you would need a bunch of b-roll and clips that relate to the song. If it’s a slow, relaxing song, you want things that are slow and represent peace. If it’s about something specific, you should have a story behind it to explain. Hope this helps! :)
Answer:
widgets=float(input("Enter number of widgets you want to buy"))
if widgets<0:
print("Can't compute negative number")
else:
if widgets<100:
cost=widgets*25
else:
cost=widgets*20
print("The total cost of widgets is", cost,"cents")
Explanation:
First I made a variable called widgets to take input of the number of widgets the customer wants to buy. I use the first comditional statement to test if the number of items typed in is not less than zero.
The else statement computed the prices of widgets based on number of widgets greater than zero.
Another conditional statement to check if the widgets is lower that 100 or greater. The cost represents the total amount, in terms of cost it will take for some nuber of widgets.
The last line prints the total cost and some statments