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


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

Author: PravallikaG | Tags: function | 1736+ Python FAQs | Share
set-operation | list-comprehension | python-django | interpreter | syntax-error | frozenset | factorial-function | inherit | input | boolean | data-type | functions | methods | keyword | data-structure | filter-function | operator-and | virtual-environment | python-repl | list-operation | return-statement | asyncio | string-method | min-function | list-slicing | join | call | mutable | yield | bitwise | class | matrix-list-comprehension | __future__ | sorted | python | command-line-parsing | range | map-function | exponentiation | application | magic-method | software-design | context-manager | scientific-notation | compute | multithreading | math | destructor | turtle | exception-handling | data-structures | version | package-management | boolean-and-non-boolean | loop-control | stack | encapsulation | append | logical-operator | list-comprehension | raise | operator-or | static-method | error | list-vs-tuple | async | match | mathematics | namespace | import-method | multiple-inheritance | file_handling | class-and-instance-variable | id-function | operators | assignment-operator | expand-tab | version-check | string-slicing | __all__-attribute | global-variable | min-max-function | feature | goto-function | global | with-statement | __init_subclass__ | split | choice | overflow | dicts | while-else-loop | random-function | objects | numeric | formal-and-actual-parameter | list-mutation | print | comprehension | else-statement | iterator | name-mangling | sum-function | sorting | default-mutable-argument | regex | escape-operator | staticmethod | lambdas | library | sys-module | dictionary | thread | loops | classes | polymorphism | string-iteration | function-argument | expression | arithmetic-expression | precedence-and-associativity | collections | descriptors | class-and-inheritance | zfill-function | indentation | mathematical-function | random | pseudocode | lambda-function | rollback | print-statement | encoding | python_version | object-attribute | syntaxerror | max-min | attribute | file-handling | type_conversion | comment | file | array | iterable | control-statement | immutable-data-type | tuple | oop | postfix | head-and-tail | identity-operator | typeerror | benefit | operations | data_structure | fabs-function | datetime | swapping | debugging | variable | generators | built-in | floating-point-precision | syntax | heap-memory | loop | pep | odd-number | installation | inheritance | virtual-environment | string-concatenation | collection | python-module | string-formatting | built-in-function | shallow-copy | logical-operator | sys | global-keyword | list-method | data-type | conditional-statement | built-in-function | type-conversion | while-and-for-loop | type-conversion | integer | complex-number | oops | logical-operation | class-and-object | access-modifier | identifier | design-principle | asyncio-module | math-copysign | control-flow | arithmetic-operation | string-method | error-handling | immutability | matrix | multiprocessing | list | statement | slice | set | invalid-list | gil | counter-function | bitwise-operator | round-function | pickling-&-unpickling | syntax-error | sum() | identity-operator | bitwise-operator | method | list-indexing | memory-management | nested-loop | filter | init | string-slicing | control-flow | module | lists | functional-programming | def | format | numpy | string | input-function | operator | deep-copy | condition | assert | matplotlib | round | lambda | operator-overloading | precedence | pandas | zip | comparison | function-and-scope | implementation | zip-function | conversion | counter | for | recurssion | python-history | threading | namedtuple | slicing | generators-in-python | data-structure | generator | copy | function | basic | indexing | string-formatting | mysql | higher-order-function | exception | center | datatype | file-handling | dictionaries | constructor | complex | while-loop | operand | global-variable | regular-expression | exception-handling | mapping-function | recursion | memory | update | touples | list-join | binary | enumerate() | parameter | int | tuple-unpacking | decorator | string-manipulation | docstring | input-function | binary-operation | decimal | conditional-statement ...