Skip to content

Commit ade78e4

Browse files
committed
arrays in Python - Accessing elements
1 parent a16ef2b commit ade78e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

0007-Array-Functions/array_functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@
3131
# Alternatively, we can use `del`
3232
del int_array[1] # Removes element at index 1 (2)
3333
print("After using del to remove element at index 1:", int_array)
34+
35+
# Accessing elements
36+
print("Element at index 1:", list_array[1])

0 commit comments

Comments
 (0)