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