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