SHARE
TWEET

TEST

a guest Jun 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #L is a list of integer
  2. def maxValue(L):
  3.  
  4.     max = L[0]
  5.  
  6.     for i in range (0, len(L)):
  7.         if L[i] > max:
  8.             max = L[i]
  9.  
  10.     return max
  11.  
  12.  
  13.  
  14. l = [2, 5, 4, 8, 1, 7, 11]
  15. print(maxValue(l))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top