Callable TypesFunctions
Functions are just like any other objecta = foo # Variable assignment a(3) # Call a function b = { } b['bar'] = foo # Place in a dictionary b['bar'](10) # Call the function There are a number of callable objects
|
<<< | O'Reilly OSCON 2000, Introduction to Python, Slide 42 July 17, 2000, beazley@cs.uchicago.edu |
>>> |