Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Home
Python
2D
Application
Buildin Function
Class
Data Structure
Data Type
Database
Development
Dictionary
Event
Exception
File
Function
GUI Pmw
GUI Tk
Language Basics
List
Math
Network
String
System
Thread
Tuple
Utility
XML
Built-in function len(): get the length of a list : len « Buildin Function « Python
Python
Buildin Function
len
Built-in function len(): get the length of a list
a = [
'spam'
,
'eggs'
, 100, 1234] print len(a)
Related examples in the same category
1.
len() function
2.
Built-in function len() returns the length of a string