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