Yes there are more pythonic way to do this job. Use any of the method as per your need.
To Creating an empty list:
>>> l = [None] * 10
[None, None, None, None, None, None, None, None, None, None]
You can also use range(x) function to create a list of form [0, 1, 2, ... x-1]
>>> l = range(10) # for python 2.x and for python 3.x use list(range(x))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Using a function to create a list:
>>> def createList():
... mylist = 
... for i in range(9):
... return mylist
[0, 1, 2, 3, 4, 5, 6, 7, 8]
Programming Tip : Did you know now all your essential programming tools are just a single click away when you use remotely accessible cloud hosted citrix xendesktop from CloudDesktopOnline at an affordable xendesktop pricing. If you prefer a dedicated server, Try a dedicated gpu server hosting from Apps4Rent.