st0le
4/12/2013 - 12:59 AM

Sort 3 numbers

import random
a,b,c = [random.randint(-100,100) for i in range(3)]
print a,b,c

#the actual solution
mx = max(a,max(b,c)) # max of a,b,c
mn = -max(-a,max(-b,-c)) # min of a,b,c, lol! :D
mid = a+b+c-mn-mx # middle term
print mn,mid,mx