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

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