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


aa = "Red", "Green", "Orange"
a,b,c = aa
print(a)

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