Level 9 : What will be the output of the following code?


a = 'python'
b = [1,2,3]
aTup = (a,b)
print(aTup[1][1:])

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