Level 1 : What is the output of the following code?


x = ['ps', 'gd']
print(list(map(upper, x)))

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