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