Level 1 : What is the output of the following code?


p = 1,2,3
a,b,c = p
print(a)

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