Skip to content

Instantly share code, notes, and snippets.

@hector117
Created March 30, 2017 20:57
Show Gist options
  • Save hector117/eac3fd7bf45336c9d939fcf6ace67b18 to your computer and use it in GitHub Desktop.
Save hector117/eac3fd7bf45336c9d939fcf6ace67b18 to your computer and use it in GitHub Desktop.
def smallest_of_four(l):
m = min(l)
return m
#main program below
print("Problema 5(Examen)")
ñ = 4
l = []
for i in range(ñ):
v = float(input("Ingresa un número"))
l.append(v)
a = smallest_of_four(l)
print("El número menor de tu lista es ",a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment