I am trying to make a platformer in python 2.7 using pygame. I am very inexperienced in using lists in python. i want to make the platforms tileable so that they can be any length. Lets say i wanted it to be 250 pixels long and each individual image was 50 long, could i do something like this:
list = [0,1,2,3,4]
screen.blit(platformimg,(list*50+x,y)
Also, i figure this part is pretty easy, but how would i make a list that is the length of a certain integer. So if the integer was 3, how could i make the list [0,1,2]?