Data Structures, Data Engineering, Arrays, Algorithms, Data Science.
[10, 20, 30, 40] for element in arr: print(element) 2. While Loop: arr = [10, 20, 30, 40] i = 0 while i < len(arr): print(arr[i]) i += 1 Subarrays: Creating smaller arrays or ‘slices’ from a larger array. Understanding Slicing: arr = [10, 20, 30, 40, 50, 60] sub_array = arr[1:4] # Index 1 to 3 (4