how to print index in list python if in list code example Example: python index of item in list list.index(element)