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

      Sum of elements in an array

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.