make a list from 0 to n python code example Example: make a list from 0 to n python a_list = list(range(0, n))