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