Answer:
Following are the correct python code to this question:
n1 = float(input('Input first number: '))#input first number
n2 = float(input('Input second number: '))#input second number
n3 = float(input('Input third number: '))#input third number
n4 = float(input('Input fourth number: '))#input fourth number
average = (n1+n2+n3+n4)/4 #calculate input number average
product = n1*n2*n3*n4 # calculate input number product
print('product: {:.0f} average: {:.0f}'.format(round(product),round(average))) #print product and average using round function
print('product: {:.3f} average: {:.3f}'.format(product,average)) #print product and average value
Output:
Please find the attachment.
Explanation:
The description of the above python code can be defined as follows:
- In the above python program four variable "n1, n2, n3, and n4" is defined, in which we take input from the user end, and in these user inputs we use the float method, that converts all the input value in to float value.
- In the next step, two variable average and product are defined, that calculate all input numbers product, average, and hold value in its variable.
- In the last line, the print method is used, which prints its variable value by using a round and format method.
Answer:
Select the Zoom tool, and then do any of the following:
<h2>#1. </h2>
Click and hold in the image to zoom in. Press Alt (Windows) or Option (Mac OS) to zoom out.
<h2>#2!</h2>
In the options bar, select Scrubby Zoom. Then drag to the left in the image to zoom out, or to the right to zoom in.
<h2>psst! pls, brailiest!</h2>
Answer:
Days of the week including weekends Fill Weekdays – you can autofill working days of the week excluding weekends. This is very cool. I can autofill dates excluding the weekends. Fill Months – and you can use the full word or a standard abbreviation for the month, and Excel will autofill the sequence.
Explanation:
Answer:
C = int(input("Enter a number ::))
F = (C * (9 /5)) + 32
print(" {} in Fahrenheit is {} ". format(C, F))
Explanation:
The program takes an input from the user and converts the input to a fahrenheit.