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

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