Re: [Tutor] Convert a list to a group of separated strings

2014-09-11 Thread Juan Christian
Done. thanks guys. On Thu, Sep 11, 2014 at 2:43 PM, Danny Yoo wrote: > > On Thu, Sep 11, 2014 at 2:09 PM, Peter Otten <__pete...@web.de> wrote: > >> > >> > >> You can explode the list by invoking the function with > >> > >> fetch_users(*my_list) # prepend the list with a star > >> > >> but I rec

Re: [Tutor] Convert a list to a group of separated strings

2014-09-11 Thread Danny Yoo
> On Thu, Sep 11, 2014 at 2:09 PM, Peter Otten <__pete...@web.de> wrote: >> >> >> You can explode the list by invoking the function with >> >> fetch_users(*my_list) # prepend the list with a star >> >> but I recommend that you change the function's signature to >> >> def fetch_users(steamids): >>

Re: [Tutor] Convert a list to a group of separated strings

2014-09-11 Thread Juan Christian
On Thu, Sep 11, 2014 at 2:07 PM, Danny Yoo wrote: > > > Hi Juan, > > You have a "var-arity" function called fetch_users(), and you'd like > to apply it with an explicit list of arguments "my_list". > > In this case, you want to use the application operator: > > > https://docs.python.org/2/tutorial

Re: [Tutor] Convert a list to a group of separated strings

2014-09-11 Thread Peter Otten
Juan Christian wrote: > Let's say I have the following list: my_list = ['76561198048214059', > '76561198065852182', '76561198067017670', '76561198077080978', > '76561198077257977', '7656119807971 > 7745', '76561198088368223', '76561198144945778'] > > and I have a function with the following signa

Re: [Tutor] Convert a list to a group of separated strings

2014-09-11 Thread Danny Yoo
On Thu, Sep 11, 2014 at 9:42 AM, Juan Christian wrote: > Let's say I have the following list: my_list = ['76561198048214059', > '76561198065852182', '76561198067017670', '76561198077080978', > '76561198077257977', '7656119807971 > 7745', '76561198088368223', '76561198144945778'] > > and I have a f

[Tutor] Convert a list to a group of separated strings

2014-09-11 Thread Juan Christian
Let's say I have the following list: my_list = ['76561198048214059', '76561198065852182', '76561198067017670', '76561198077080978', '76561198077257977', '7656119807971 7745', '76561198088368223', '76561198144945778'] and I have a function with the following signature: def fetch_users(*steamids) U