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

      Find Smallest element in an array

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.