The code that read two numbers from user input, then, print the sum of those numbers are as follows:
x = int(input("write a number: "))
y = int(input("write another number: "))
print(x + y)
<h3 /><h3>Code explanation</h3>
- The first line of code ask the user for a number input. The integer input is stored in a variable x.
- The second line of code ask the user for another number input . The integer input is stored in a variable y.
- Finally, we print the sum of the user's input.
learn more on python code here: brainly.com/question/15183327?referrer=searchResults
Answer:
If there are 120 blue sweets then going by the ratio 3:4, there are 90 red sweets
Explanation:
Red sweets : Blue sweets = 3:4
Total ratio* = 3+4 = 7
Blue sweets = 4x = 120
Red sweets = 3x
where X is the ratio multiplier
x= 120/4 = 30
》 Red sweets = 3 × 30 = 90