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


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

Author: PravallikaG | Tags: function | 1736+ Python FAQs | Share
identifier | dictionary | for | input-function | binary | comment | attribute | syntax | loop | memory | exception | zfill-function | descriptors | int | operations | goto-function | built-in-function | python-repl | global | object-attribute | global-variable | context-manager | global-variable | version | escape-operator | sum() | operator-and | pandas | debugging | syntax-error | filter-function | assert | generators-in-python | application | type-conversion | precedence-and-associativity | arithmetic-expression | regular-expression | lambda | thread | sorted | error | comprehension | bitwise | conversion | expression | numeric | file-handling | list-operation | library | logical-operation | loop-control | syntax-error | min-function | nested-loop | exception-handling | string-concatenation | staticmethod | comparison | logical-operator | turtle | min-max-function | regex | asyncio | access-modifier | default-mutable-argument | gil | factorial-function | odd-number | postfix | update | binary-operation | match | string-formatting | async | arithmetic-operation | destructor | frozenset | map-function | bitwise-operator | software-design | constructor | input-function | parameter | enumerate() | dictionaries | mutable | class-and-object | tuple | command-line-parsing | expand-tab | sorting | choice | while-loop | tuple-unpacking | type-conversion | shallow-copy | function-and-scope | call | numpy | functions | decimal | method | immutability | virtual-environment | list-mutation | input | id-function | static-method | inheritance | keyword | data-structures | boolean | operators | control-statement | name-mangling | collection | matrix | control-flow | counter | string-formatting | module | invalid-list | class-and-instance-variable | sys-module | bitwise-operator | recursion | operator | file_handling | identity-operator | list-comprehension | generators | encoding | built-in-function | lambda-function | mysql | conditional-statement | dicts | condition | else-statement | counter-function | objects | floating-point-precision | append | data_structure | iterator | raise | basic | syntaxerror | oop | python_version | benefit | generator | array | math-copysign | set-operation | set | format | boolean-and-non-boolean | touples | indentation | data-type | methods | complex | list-slicing | max-min | deep-copy | operand | round | split | assignment-operator | multithreading | head-and-tail | math | recurssion | fabs-function | exception-handling | feature | __all__-attribute | exponentiation | sys | compute | while-else-loop | lists | scientific-notation | class | __future__ | init | namedtuple | center | class-and-inheritance | list | import-method | string | asyncio-module | complex-number | while-and-for-loop | matrix-list-comprehension | pseudocode | list-vs-tuple | function | lambdas | variable | formal-and-actual-parameter | higher-order-function | swapping | mathematics | string-slicing | implementation | namespace | docstring | slicing | polymorphism | functional-programming | print-statement | precedence | zip-function | statement | identity-operator | file-handling | slice | pep | data-type | string-slicing | decorator | copy | collections | conditional-statement | rollback | installation | multiprocessing | package-management | stack | encapsulation | magic-method | pickling-&-unpickling | random-function | zip | design-principle | multiple-inheritance | data-structure | string-method | __init_subclass__ | yield | range | control-flow | threading | list-join | virtual-environment | function-argument | iterable | immutable-data-type | list-indexing | list-method | join | indexing | file | random | classes | oops | mathematical-function | python-django | string-iteration | python-module | string-manipulation | python | return-statement | error-handling | operator-overloading | data-structure | memory-management | python-history | datatype | datetime | interpreter | typeerror | list-comprehension | sum-function | inherit | overflow | string-method | type_conversion | logical-operator | built-in | mapping-function | heap-memory | filter | version-check | loops | integer | with-statement | matplotlib | global-keyword | print | def | round-function | operator-or ...