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