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