Advertisement
SimeonTs

SUPyF2 Functions-Exercise - 01. Smallest of Three Numbers

Oct 8th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. """
  2. Functions - Exercise
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1728#0
  4.  
  5. SUPyF2 Functions-Exercise - 01. Smallest of Three Numbers
  6.  
  7. Problem:
  8. Write a function which receives three integer numbers and returns the smallest.
  9. Use appropriate name for the function.
  10. Examples:
  11. Input:  Output:
  12. 2
  13. 5
  14. 3       2
  15.  
  16. 600
  17. 342
  18. 123     123
  19.  
  20. 25
  21. 21
  22. 4       4
  23. """
  24.  
  25.  
  26. def smallest_integer(all_nums):
  27.     return min(all_nums)
  28.  
  29.  
  30. print(smallest_integer([int(input()), int(input()), int(input())]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement