๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_string_index.asp
Python String index() Method
Python Examples Python Compiler ... Interview Q&A Python Bootcamp Python Training ... The index() method finds the first occurrence of the specified value....
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_list_index.asp
Python List index() Method
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ ref_tuple_index.asp
Python Tuple index() Method
The index() method finds the first occurrence of the specified value. The index() method raises an exception if the value is not found. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: ...
๐ŸŒ
Sololearn
sololearn.com โ€บ en โ€บ Discuss โ€บ 3221054 โ€บ anyone-know-how-index-could-be-used-properly-in-python
Anyone know how .index() could be used properly? In Python? | Sololearn: Learn to code for FREE!
June 15, 2023 - "The index() method returns the position at the first occurrence of the specified value." https://www.w3schools.com/JUMP_LINK__&&__python__&&__JUMP_LINK/ref_list_index.asp That means E.index(1) is not the same as E[1].
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python-list-index
Python List index() - Find Index of Item - GeeksforGeeks
index() method in Python is a helpful tool when you want to find the position of a specific item in a list. It works by searching through the list from the beginning and returning the index (position) of the first occurrence of the element you're ...
Published ย  April 27, 2025
๐ŸŒ
w3resource
w3resource.com โ€บ python โ€บ list โ€บ index_method.php
Python List index() Method
April 14, 2026 - Python List - index() Method: The index method() is used to get the zero-based index in the list of the first item whose value is given.
๐ŸŒ
Tutorial Gateway
tutorialgateway.org โ€บ python-index
Python index Function
December 31, 2024 - This Python function is used to return the index position of the first occurrence of a specified string.
Find elsewhere
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ python-list-index
Python List index() Method Explained with Examples | DataCamp
March 28, 2025 - This function is especially useful ... Master Python for data science and gain in-demand skills. ... The method index() returns the lowest index in the list where the element searched for appears....
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ w3schools lists tutorials; half of the functions they use don't seem to work?
r/learnpython on Reddit: w3schools lists tutorials; half of the functions they use don't seem to work?
October 2, 2023 -

Total newbie here. Just been doing some basic exercises and I think the site I'm using is missing some advice, but its such a basic problem I've had no luck googling.

https://www.w3schools.com/python/python_lists.asp

Here they have a list of functions for working with lists; "index()"; "count()"; etc. and implies that these are "built in". However my Python install (3.11.5) doesn't have them as core. I assume I just need to import a module but w3 doesn't tell me which module to import.

Am I right? If so which module is it? I assume its really basic common knowledge.

Thanks x

๐ŸŒ
Codecademy
codecademy.com โ€บ docs โ€บ python โ€บ lists โ€บ .index()
Python | Lists | .index() | Codecademy
June 11, 2025 - The .index() method is a built-in Python list method that returns the index position of the first occurrence of a specified element within a list.
๐ŸŒ
iO Flood
ioflood.com โ€บ blog โ€บ index-python
index() Python Function Guide (With Examples)
February 10, 2024 - In this example, we have a list my_list containing three items. We use the index() function to find the position of โ€˜bananaโ€™ in the list. The function returns โ€˜1โ€™, which is the index position of โ€˜bananaโ€™. Remember, Python list indexing starts from 0.
๐ŸŒ
Python Academy
python-academy.org โ€บ functions โ€บ index
index โ€” Python Function Reference
A comprehensive guide to Python functions, with examples. Find out how the index function works in Python. Return zero-based index in the list of the first item whose value is equal to x.
๐ŸŒ
Du
cs.du.edu โ€บ ~intropython โ€บ intro-to-programming โ€บ list_methods.html
List methods - Introduction to Programming
The call your_list.index(x) searches for the value x in your_list. It then returns an int which is the index of the first time that value appears in the list. One down side of the index() method is that x must be in the list - if it isn't then a ValueError results.
๐ŸŒ
Upgrad
upgrad.com โ€บ home โ€บ tutorials โ€บ software & tech โ€บ index in python
Index Function in Python: Complete Guide
April 22, 2026 - Learn how to use index function in Python with examples covering list indexing, finding elements, negative indexing, and slicing.
๐ŸŒ
Simplilearn
simplilearn.com โ€บ home โ€บ resources โ€บ software development โ€บ python index: mastering list indexing techniques
Python List index() Method Explained with Examples
3 weeks ago - The Python index() method helps you find the index position of an element or an item in a string of characters or a list of items.
Address ย  5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States
๐ŸŒ
Skill Matrix Academy
skillsmatrixacademy.com โ€บ home โ€บ python list index() method explained with practical examples
Python list index() Method Explained with Practical Examples
November 7, 2025 - The index() Function helps you find the position of an element in a list or string. It searches for the first match and returns its index number (or position). ... This will output 2, because in Python indexing, the count starts at 0.
๐ŸŒ
Hyperskill
hyperskill.org โ€บ university โ€บ python โ€บ indexes-and-index-in-python
Indexes and index() in Python
July 17, 2024 - For example, by slicing the list ... function on the sliced list until the element is not found anymore. In Python, an index refers to the position of an element within a list or a string....
๐ŸŒ
Tutorialspoint
tutorialspoint.com โ€บ python โ€บ list_index.htm
Python List index() Method
The Python List index() method is used to retrieve the lowest index in a list at which a specified object appears. The object can be anything; a single element or a collection of elements in the form of another list, tuple, set etc.
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-is-index-in-python
What is index() in Python?
index() is a list method in Python that returns the index of a specified element in a list. The syntax of this function is as follows.