I got a list named as tower and it contains n number of distinct objects. Wanna pass my list as an argument to a function just as given below.
output = foo([tower[1], tower[2], tower[3]])
How can I iterate through my list and produce this syntax with n number of objects. I really just dont want to type each one of them with commas.
Thanks.