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