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

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