0


ex.teamlists{
    1={1,3,4}
    2={2,6}
    3={5,9,10}
    4={7,8}
}

First, is this possible?

Second, how do you call the very insides of the tables?

flag offensive
asked 2010-05-31 14:04:54.024281
5
add comment
1 Answers:
0


ex = {}
ex.teamlists =  {
                    {1,3,4},
                    {2,6},
                    {5,9,10},
                    _4 ={7,8},
                }

print(ex.teamlists[1][3]) ---> 4
print(ex.teamlists['_4'][1]) ---> 7
print(ex.teamlists._4[1]) ---> 7

This should be the correct syntax. Last two are printing the same value.

I'm not totally sure what you mean with calling strings?

permanent link | flag offensive
answered 2010-05-31 22:56:24.568675
46
add comment
Your answer:
You are now not logged in but you can answer first and then login
toggle preview



Tags:

× 3
× 1
× 1

Asked: 1 year, 11 months ago

Seen: 1,010 times

Last updated: 1 year, 11 months ago

Made with Django.