| View previous topic :: View next topic |
| Author |
Message |
Gladis Enthusiastic Coder
Joined: 24 May 2006 Posts: 107
|
Is there a way to check how many objects are in a tupel?
Is there an existing procedure, or shell i do it in a short for-loop?
Reply with quote
|
| |
|
|
WarChild Enthusiastic Coder
Joined: 24 Feb 2006 Posts: 46
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
| |
Gladis Enthusiastic Coder
Joined: 24 May 2006 Posts: 107
|
Kopilman, sry, i meant to count lists
There is no len() attribute
Is there something simmilar?
Reply with quote
|
| |
|
|
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
|
Gladis: len() gives the length of almost everything.... it is a builtin... you dont call it on the object
Do like
L = [1,2,3]
Print len(l)
T = (1,2,3)
Print len(t)
Reply with quote
|
| |
|
|
Gladis Enthusiastic Coder
Joined: 24 May 2006 Posts: 107
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
| |
Gladis Enthusiastic Coder
Joined: 24 May 2006 Posts: 107
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
| |
Gladis Enthusiastic Coder
Joined: 24 May 2006 Posts: 107
| |
| Page 1 of 2 |
Goto page 1, 2 Next |
|