Type.py

# In Python 2.X: >>> type(L) <type 'list'> >>> type(type(L)) <type 'type'> # In Python 3.X: >>> type(L) <class 'list'> >>> type(type(L)) <class 'type'> # Types: type of L is list type object # Even types are objects # 3.X: types are classes, and vice versa # See Chapter 32 for more on class types
How to Break Your Code’s Flexibility

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.