Level 5 : What will be the output of the following code?


p = 8, s = 18
p,s = s,p
print(p,s)

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