1def retList():
2 list = []
3 for i in range(0,10):
4 list.append(i)
5 return list
6a = retList()
7print a
8#Output [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
1def list_returner():
2 ### Lines of code that makes/appends stuff to a list ###
3 ### If you are going to add things to an existing list, add a param for this function ###
4 # Assuming that the name of the list is 'list':
5 return list