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