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


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

Author: SarojiniD | Tags: string | 1736+ Python FAQs | Share
floating-point-precision | min-max-function | mathematics | recursion | round | match | id-function | set-operation | oops | gil | access-modifier | control-flow | overflow | global-variable | operations | operators | higher-order-function | loop | zfill-function | join | oop | numeric | methods | formal-and-actual-parameter | threading | operator-or | built-in-function | built-in | numpy | datetime | list-comprehension | counter | rollback | init | complex-number | keyword | boolean-and-non-boolean | bitwise-operator | assert | list-indexing | file_handling | loops | string-method | control-flow | sys | iterator | string-iteration | mapping-function | split | python-django | swapping | string-concatenation | asyncio | while-else-loop | sys-module | encoding | choice | data-structure | static-method | round-function | file-handling | exception | input | slice | precedence-and-associativity | decimal | name-mangling | python-module | async | arithmetic-operation | string-slicing | escape-operator | pickling-&-unpickling | call | list-vs-tuple | namedtuple | data-type | return-statement | variable | immutability | parameter | factorial-function | classes | deep-copy | list-method | sum-function | multiple-inheritance | sum() | operator | string-method | mathematical-function | objects | fabs-function | conditional-statement | comprehension | inheritance | lambdas | package-management | generators-in-python | raise | interpreter | immutable-data-type | append | tuple-unpacking | exponentiation | boolean | global-variable | built-in-function | class-and-instance-variable | indexing | slicing | class-and-inheritance | shallow-copy | function | inherit | invalid-list | library | type-conversion | attribute | sorting | installation | map-function | else-statement | type_conversion | syntaxerror | thread | list-operation | bitwise-operator | __init_subclass__ | python | range | indentation | filter | decorator | function-and-scope | compute | destructor | namespace | polymorphism | module | print | comparison | syntax-error | data_structure | odd-number | integer | application | assignment-operator | control-statement | global | lambda-function | matrix | set | string-formatting | dictionary | regex | file-handling | basic | sorted | binary | error-handling | expand-tab | multiprocessing | identity-operator | math-copysign | min-function | array | list-mutation | python-history | staticmethod | magic-method | touples | condition | design-principle | pep | __future__ | dictionaries | logical-operator | encapsulation | while-and-for-loop | list-join | for | stack | print-statement | pseudocode | binary-operation | mysql | string | python-repl | identity-operator | typeerror | zip | operator-overloading | import-method | pandas | type-conversion | data-structure | data-type | tuple | virtual-environment | lambda | statement | expression | object-attribute | function-argument | while-loop | asyncio-module | functional-programming | recurssion | input-function | head-and-tail | complex | logical-operator | update | method | bitwise | dicts | with-statement | string-slicing | frozenset | syntax-error | version | matrix-list-comprehension | enumerate() | collections | command-line-parsing | memory-management | exception-handling | precedence | class | center | filter-function | mutable | datatype | class-and-object | lists | counter-function | docstring | python_version | software-design | version-check | goto-function | constructor | heap-memory | implementation | max-min | memory | benefit | collection | list-comprehension | turtle | logical-operation | scientific-notation | context-manager | default-mutable-argument | operand | syntax | input-function | multithreading | feature | error | generators | list-slicing | iterable | conditional-statement | random | debugging | def | string-manipulation | arithmetic-expression | yield | generator | descriptors | int | identifier | functions | comment | copy | postfix | random-function | list | format | string-formatting | nested-loop | exception-handling | zip-function | virtual-environment | regular-expression | math | loop-control | conversion | matplotlib | file | operator-and | data-structures | global-keyword | __all__-attribute ...