human
list get index with default.
assistant
Here is a Python program to return list get index with default index

import re

def get_index(list, item, default=None):
    """Returns the index of the first occurrence of item in list,
       or default if item is not in list."""
    for i, e in enumerate(list):
        if e == item:
            return i
    return default

# Enter the list
list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Enter the item
item = 3

# Enter the default
default = -1

# Calling the function
print((get_index(list, item, default)))

#Example Output
# 2

#Remember to inspect code for bugs.