Re: Passing ints to a function

2012-06-08 Thread stayvoid
> You want to unpack the list: > > function(*a)  # like function(a[0], a[1], a[2], ...) Awesome! I forgot about this. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Passing ints to a function

2012-06-08 Thread stayvoid
Hello, I want to pass several values to a function which is located on a server (so I can't change its behavior). That function only accepts five values which must be ints. There are several lists: a = [1, 2, 3, 4, 5] b = [5, 4, 3, 2, 1] c = [0, 0, 0, 0, 0] I want to pass each value from these l