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


x = (2, 5, 7, 8, 3, 4, 3, 6, 9)
print(x.index(3))

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