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

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