# animals list
1.animals = ['cat', 'dog', 'rabbit', 'guinea pig']
# 'rabbit' is removed
2.animals.remove('rabbit')
# Updated animals List
3.print('Updated animals list: ', animals)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter