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