[Solved] How to get all items from a list in Python 2 [closed]


What you are trying to do is to unpack the elements of the list into parameters. This can be done like this:

Albaqus_Function(*coord_list[0:n])

Where n is the last index+1.

The *args notation is used as the following:

arguments = ["arg1", "arg1", "arg3"]
print(*arguments)

This will be equivalent to:

print("arg1", "arg2", "arg3")

This is useful when you don’t exactly know how many arguments you need.

3

solved How to get all items from a list in Python 2 [closed]