Skip to content

Instantly share code, notes, and snippets.

@ebovio
Created April 16, 2017 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebovio/c1ca1ff1553f0a6ce8b7d1135aece541 to your computer and use it in GitHub Desktop.
Save ebovio/c1ca1ff1553f0a6ce8b7d1135aece541 to your computer and use it in GitHub Desktop.
#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