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