Skip to content

Commit

Permalink
arrays in Python - Accessing elements
Browse files Browse the repository at this point in the history
  • Loading branch information
oneananda committed Oct 26, 2024
1 parent a16ef2b commit ade78e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 0007-Array-Functions/array_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@
# Alternatively, we can use `del`
del int_array[1] # Removes element at index 1 (2)
print("After using del to remove element at index 1:", int_array)

# Accessing elements
print("Element at index 1:", list_array[1])

0 comments on commit ade78e4

Please sign in to comment.