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


def fun():
    return[i for i in range(0,3,3)]
print(fun())

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