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