Created
April 16, 2017 19:25
-
-
Save ebovio/c1ca1ff1553f0a6ce8b7d1135aece541 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Problem5 | |
def smallest_of_four(list): | |
small = min(list) | |
return small | |
#Main program below | |
w=float(input("Write the first number")) | |
x=float(input("Write the second number")) | |
y=float(input("Write the third number")) | |
z=float(input("Write the fourth number")) | |
list=[w, x, y, z] | |
print("The average of the numbers in the list is", smallest_of_four(list)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment