Sleddersquid

max_num

Jun 27th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def max_num(num1, num2, num3):
  2.     if num1 >= num2 and num1 >= num3:
  3.         return num1
  4.     elif num2 >= num1 and num2 >= num3:
  5.         return num2
  6.     else:
  7.         return num3
  8.  
  9.    
  10. print(max_num(3, 4, 5))
Advertisement
Add Comment
Please, Sign In to add comment