Level 9 : What will be the output of the following Python code snippet?


print('Ab!2'.swapcase())

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