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