web hosting and development forums
Web Design and Development Forums Archive


Index - Python programming forum

python list length


Post reply

How do i get the length of a list in Python?
If I have
mylist = ["Micle", "23", "male"]
the list length is 3.
What function returns this length?
Thank you.
I tried
length(mylist)
and
mylist.lengh
nothing works :(
Thank you!
did you try:
[code:1]len(mylist)[/code:1]




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com