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