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