Dec-28-2018, 10:21 AM
everything in python is a class, including functions:
Python 3.7.1 (default, Nov 20 2018, 18:13:14) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> def zz(): ... print('abc') ... >>> type(zz) <class 'function'> >>> ww = {} >>> type(ww) <class 'dict'> >>> a = 1 >>> type(a) <class 'int'> >>> quit()