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