Level 10 : 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 | 1736+ Python FAQs | Share
sys-module | generators | syntaxerror | decorator | class-and-inheritance | indentation | math-copysign | sum-function | staticmethod | async | round-function | datatype | generators-in-python | enumerate() | bitwise-operator | counter | built-in-function | arithmetic-expression | assignment-operator | exception-handling | datetime | file-handling | recurssion | print-statement | min-function | goto-function | complex | module | array | exception-handling | class | zip-function | debugging | virtual-environment | conditional-statement | matrix-list-comprehension | max-min | access-modifier | string-formatting | __init_subclass__ | list-operation | class-and-instance-variable | integer | fabs-function | __future__ | version | data-structure | threading | input-function | thread | set-operation | command-line-parsing | range | update | binary | slice | identity-operator | tuple | map-function | operators | list-indexing | mysql | error | recursion | turtle | conversion | odd-number | raise | interpreter | benefit | dictionaries | expand-tab | static-method | heap-memory | software-design | escape-operator | syntax | destructor | list-slicing | oop | __all__-attribute | list-comprehension | loop | frozenset | assert | condition | default-mutable-argument | return-statement | complex-number | choice | memory-management | mathematical-function | functional-programming | append | indexing | set | formal-and-actual-parameter | namedtuple | comprehension | decimal | math | docstring | inheritance | string-method | zip | implementation | boolean-and-non-boolean | data-type | file | matrix | name-mangling | syntax-error | init | operator-and | installation | collections | design-principle | filter | exception | split | operator-overloading | logical-operation | factorial-function | global | multiprocessing | string-manipulation | constructor | invalid-list | loop-control | input | operations | multiple-inheritance | regular-expression | python-module | python | descriptors | list-comprehension | center | lambda-function | tuple-unpacking | function-and-scope | iterator | memory | string-method | print | type-conversion | dictionary | random-function | deep-copy | type-conversion | function-argument | string | objects | nested-loop | data-structure | call | rollback | input-function | bitwise | syntax-error | compute | pickling-&-unpickling | def | lambda | basic | asyncio-module | slicing | numeric | join | mathematics | head-and-tail | precedence-and-associativity | typeerror | higher-order-function | python-django | string-concatenation | arithmetic-operation | control-flow | immutability | logical-operator | control-flow | data-structures | mutable | package-management | multithreading | string-formatting | list | list-mutation | floating-point-precision | scientific-notation | pep | global-variable | function | string-slicing | library | data_structure | error-handling | sorted | list-join | namespace | stack | yield | binary-operation | expression | precedence | list-vs-tuple | context-manager | zfill-function | else-statement | operator | sorting | lambdas | functions | oops | postfix | global-variable | logical-operator | statement | polymorphism | python_version | filter-function | attribute | string-iteration | touples | pandas | regex | feature | int | type_conversion | swapping | sum() | operand | sys | boolean | global-keyword | encoding | format | identifier | match | iterable | encapsulation | virtual-environment | magic-method | built-in-function | method | collection | counter-function | gil | while-else-loop | pseudocode | matplotlib | overflow | python-history | copy | variable | bitwise-operator | list-method | for | comment | random | round | file-handling | shallow-copy | classes | while-loop | string-slicing | exponentiation | lists | conditional-statement | identity-operator | version-check | import-method | numpy | dicts | while-and-for-loop | with-statement | loops | operator-or | parameter | keyword | file_handling | generator | class-and-object | application | python-repl | immutable-data-type | methods | comparison | data-type | mapping-function | inherit | asyncio | control-statement | object-attribute | min-max-function | built-in | id-function ...