Remove Last Element from Array using Python

pop method

data = [10, 3, 17, 50, 15]
data.pop()

print(data)

Leave a Comment

Cancel reply

Your email address will not be published.