Tiago Saboga wrote:
> Hi!
>
> I think your problem was solved, and that the list of lists is the better
> approach indeed. But I'd like to add an answer to a direct question you
> asked:
>
> Em Domingo 08 Outubro 2006 07:47, Tom R. escreveu:
>> Basically I want to be able to integrate the value
Hi!
I think your problem was solved, and that the list of lists is the better
approach indeed. But I'd like to add an answer to a direct question you
asked:
Em Domingo 08 Outubro 2006 07:47, Tom R. escreveu:
> Basically I want to be able to integrate the value of one variable into
> another var
Tom R. wrote:
> Alternately, how can I use the return of a function as a variables name? eg:
>
> def choose_player(player):
> if player == 1:
> return player1[3
> if player == 2:
> return player2[3]
> if player == 3:
> return player3[3]
> if player == 4:
>
On Sun, 2006-10-08 at 10:40 -0300, Ismael Garrido wrote:
> Tom R. escribió:
> > I have a number of arrays:
> >
> > player1 = [data, data, data]
> > player2 = [data, data, data]
> > player3 = [data, data, data]
> > player4 = [data, data, data]
> >
> > I want to be able to do something like:
> >
> >
Tom R. escribió:
> I have a number of arrays:
>
> player1 = [data, data, data]
> player2 = [data, data, data]
> player3 = [data, data, data]
> player4 = [data, data, data]
>
> I want to be able to do something like:
>
> count = 2
> if player + count[3] == 5:
>do this
>do that
>
I have a number of arrays:
player1 = [data, data, data]
player2 = [data, data, data]
player3 = [data, data, data]
player4 = [data, data, data]
I want to be able to do something like:
count = 2
if player + count[3] == 5:
do this
do that
count += 1
And that would do this and t