Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def biggest_num (a, b, c):
- if a > b and a > c:
- return a
- elif b > a and b > c:
- return b
- return c
- def smallest_num (a, b, c):
- if a < b and a < c:
- return a
- elif b < a and b < c:
- return b
- else:
- return c
- def middle_num (a, b, c):
- if (b > a > c) or (c > a > b):
- return a
- elif (a > b > c) or (c > b > a):
- return b
- else:
- return c
- a, b, c = (
- int(input('Type a number for a: ')),
- int(input('Type a number for b: ')),
- int(input('Type a number for c: '))
- )
- i1 = smallest_num(a, b, c)
- i2 = middle_num(a, b, c)
- i3 = biggest_num(a, b, c)
- print(f"Order: {i1}, {i2}, {i3}")
- #Talice ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement