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


x = ['ab', 'cd']
print(list(map(upper, x)))

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