for and remove python code example
Example 1: del vs remove python
A = [1,2,3,4]
del(A[1])
# A: [1,3,4]
B = {9,8,7,6}
B.remove("8")
# B: {9,7,6}
Example 2: how to delete in python
#x will be deleted
print("x\b")
A = [1,2,3,4]
del(A[1])
# A: [1,3,4]
B = {9,8,7,6}
B.remove("8")
# B: {9,7,6}
#x will be deleted
print("x\b")