Level 1 : What will be the output of the following Python code?


l=[1, 2, 3, 4, 5]
m=map(lambda x:2**x, l)
print(list(m))

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