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