Skip to content

Commit aad1e95

Browse files
committed
Basic operations on array - Removing elements
1 parent 5910f2e commit aad1e95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

0007-Array-Functions/array_functions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@
1414

1515
# Adding elements
1616
int_array.append(12) # Append an element
17+
print("After appending:", int_array)
1718

18-
print("After appending:", int_array)
19+
# Removing elements
20+
int_array.remove(3) # Remove an element
21+
print("After removing:", int_array)

0 commit comments

Comments
 (0)