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


x = 3
y = 1 
print(x, y)
x, y = y, x 
print(x, y)

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