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