Given the variables x, y, and z, each associated with an int, write a fragment of code that assigns the smallest of these to min.
def min(x,y,z):
if (x < y) and (x < z):
min = x
elif (y < x) and (y < z):
min = y
elif (z < y) and (z < x):
min = z
print(min)
Comments
Leave a comment