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