Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python List index()

Python Program to Find the index of element in the list
# Programming list
programming_list = ['C','C#','Python','Java','JavaScript','SQL']

# find the index of Python
index = programming_list.index('Python')
print('The index of Python is :', index)

# find the index of SQL
index = programming_list.index('SQL')
print('The index of SQL is :', index)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Python #List
ADD COMMENT
Topic
Name
9+3 =