Quick actions

cmd+k|ctrl+k

Navigation

Languages

15/10/2025 del & pop

Snippet info

Language

Python

Visibility

public

Author

kwahmail

Created

2025-10-15T12:20:39.512022Z

Updated

2025-10-15T13:16:16.781626Z

x = [1,2,3,4,5]
del x[:2]
y = x.pop()
print(x,y)
x.pop(0)
print(x)
INFO