Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fct_max(my_list):
- max_value = my_list[0]
- for item in my_list:
- if item > max_value:
- max_value = item
- return max_value
- print(fct_max([2, 8, 4, 3, 7]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement