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