a = [10, 89, 9, 56, 4, 80, 8]
      max_element = a[0]
      for i in range(len(a)):
        if a[i] > max_element:
           max_element = a[i]
      print (max_element)
      
      Python language logo

      Find Largest element in an array

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.