Level 10 : What is the return value of a function with no return statement?


def func():
    pass

x = func()
print(x)

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