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