Level 9 : What will be the output of the following code?


def fun():
   print('fun')
print(fun())

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