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