Level 9 : What are the two main types of functions in Python?

Author: HareramG | Tags: function | 1859+ Python FAQs | Share
python-operators | datetime | int | lambda-function | import-method | reading:-read(),-readline(),-readlines() | touples | array | variable | zfill-function | working-with-file-paths | using-else-and-finally | using-join()-and-is_alive()-methods | command-line-parsing | bitwise | bitwise-operator | immutability | type-conversion | string-iteration | type_conversion | tuple | yield | goto-function | function-and-scope | format | why-use-multiprocessing-over-threading?-(gil) | recursion | center | working-with-dates-and-times | docstring | class-decorators | using-assertions-(assertequal,-assertraises) | list-operation | file-handling | error | max-min | numpy | indexing | assignment-operator | while-else-loop | string-concatenation | string-manipulation | python-syntax-and-structure | using-map()-for-transformations | while-and-for-loop | slice | class | sorting-and-ranking | class-and-instance-variable | syntax | pass | init | sys | benefit | python-module | else-statement | multiprocessing | sys-module | package-management | nested-loop | sorted | attribute | file_handling | iterable | string-method | mathematical-function | handling-missing-values-(fillna,-dropna) | booleans | threading | managing-directories-with-os-and-shutil | exception-handling | working-with-binary-files-(rb,-wb) | __init_subclass__ | filter | sorting | global-variable | bitwise-operator | operations | installation | class-and-inheritance | exponentiation | python-repl | tuple-unpacking | boolean-masking | heap-memory | identifier | random | inheritance | assignment-operators | scientific-notation | anchors-(^,-$) | application | python_version | assert | objects | aggregating-data-with-functools.reduce() | collection | boolean-and-non-boolean | interpreter | python | strings | random-function | loop-control-statements | round | multiple-inheritance | string-methods | formatting-with-strftime | tuple-methods | advanced-file-operations | zip-function | classes | list-slicing | opening-files-(open()) | built-in | escape-operator | namespace | return-statement | writing:-write(),-writelines() | working-with-temporary-files-using-tempfile | collections | arbitrary-arguments-(*args,-**kwargs) | type-conversion-and-casting | using-the-threading-module | loops | built-in-modules | access-modifier | introduction-to-multiprocessing | __all__-attribute | while-loop | single-inheritance | basic | choice | gil | keyword | comparison | built-in-function | exception-handling | memory-management | python-history | comprehension | zip | parameter | list-indexing | input-function | context-manager | error-handling | head-and-tail | lambda-functions | asyncio | thread | join | introduction-to-threads | asyncio-module | immutable-data-type | list-comprehension | reading-and-writing-files | data-type-conversions | while-loops | intering | namedtuple | virtual-environment | sets | __future__ | mysql | built-in-function | raise | higher-order-function | string-formatting | binary-operation | mathematics | file | def | class-and-object | id-function | operators | string-method | quantifiers-(*,-+,-?,-{}) | binary | logical-operator | overriding-methods | identity-operators-(is,-is-not) | mutable | control-statement | logical-operation | syntax-error | generators | async | pseudocode | statement | reading-and-writing-large-files-efficiently | data_structure | key-value-pairs | loop-control | error-handling | method | polymorphism | method-overloading | call | stack | lambdas | list,-set,-and-dictionary-comprehensions | list-join | precedence | numeric | oops | recurssion | function-argument | print | iterators | version-check | append | list | min-function | syntax-error | magic-method | expression | staticmethod | swapping | thread-safe-data-structures-(queue.queue) | comment | copy | list-method | module | string-slicing | directory-operations | math-copysign | encoding | range | string-slicing | control-flow | data-type | complex-number | conditional-statement | iterator | global | regular-expression | set-operation | print-statement | feature | using-yield-in-functions | multiple-inheritance | sum-function | split | matrix | shallow-copy | string-formatting | operator | rollback | oop | set | min-max-function | type-conversion | odd-number | version | operand | arithmetic-expression | boolean | arithmetic-operation | default-arguments | destructor | dictionary-comprehensions | difference-between-threads-and-processes | default-mutable-argument | encapsulation | fabs-function | decorator | library | formal-and-actual-parameter | creating-and-starting-threads | data-structure | data-structure | counter | data-structures-in-python | functional-programming | frozenset | deep-copy | identity-operator | for | datatype | expand-tab | descriptors | dictionaries | enumerate() | implementation | pep | conversion | math | using-os-and-pathlib-modules | dataframe-and-series-objects | filtering-and-indexing | thread-synchronization | turtle | integer | functional-programming | map-function | raise-statement | object-attribute | global-keyword | debugging | control-flow | literal-characters-and-special-characters | conditional-statement | precedence-and-associativity | global-variable | lambda | mapping-function | virtual-environment | else | dicts | memory | lists | sum() | data-types | condition | static-method | operator-and | design-principle | update | string | joining-and-merging-dataframes | matplotlib | creating-custom-modules | time-series-with-pandas | list-comprehension | integers | syntaxerror | slicing | exception | generators-in-python | datetime.date,-datetime.time,-datetime.datetime | list-comprehensions | conditional-statements | filter-function | loop | with-statement | logical-operators | input | identity-operator | regex | list-mutation | postfix | methods | floating-point-precision | test-discovery | pickling--unpickling | overflow | using-lists-as-stacks | indentation | list-methods-and-slicing | dictionary-methods | list-vs-tuple | pandas | compute | introduction-to-python | walking-through-directories-using-os.walk() | counter-function | unit-testing | multithreading | tuples | complex | dictionary | floats | software-design | logical-operator | inherit | match | data-type | data-structures | name-mangling | input-function | round-function | operator-overloading | typeerror | indexing:-loc-vs-iloc | invalid-list | matrix-list-comprehension | generator | parsing-with-strptime | functions | decimal | operator-or | regular-expressions | defining-functions | file-handling | multiple-except-blocks | membership-operators-(in,-not-in) | factorial-function | function | python-django | constructor ...