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