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