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

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