Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #L is a list of integer
- def maxValue(L):
- max = L[0]
- for i in range (0, len(L)):
- if L[i] > max:
- max = L[i]
- return max
- l = [2, 5, 4, 8, 1, 7, 11]
- print(maxValue(l))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement