0

I'm still learning about python programming, I'm just curious in list, I have code like this :

def getdirt(endrange):
    dirt_down = []
    for i in range(0 , endrange, 70):
      dirt_down.append(i)

    return dirt_down

print(getdirt(420))

and this the ouput from that code :

[0, 70, 140, 210, 280, 350]

and now I have a problem, How to convert that list to integer number, just like :

0
70
140
210
280
350 

how ?

0 Answers0