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