Python: How to create an empty list and append items to it?

PHOTO EMBED

Wed Oct 13 2021 20:33:26 GMT+0000 (Coordinated Universal Time)

Saved by @rainxx

# Append 10 numbers in an empty list from number 0 to 9
sample_list = [i for i in range(10)]
content_copyCOPY

https://thispointer.com/python-how-to-create-an-empty-list-and-append-items-to-it/