how to assign values to empty list in python code example Example: declare an empty list in python num = list()