"""
CODE CHALLENGE: LISTS
Double Index
double_index(lst, index)
"""

#Write your function here

def double_index(lst,index):
	try:
		lst[index] = lst[index] * 2
		return lst
	except IndexError:
		return lst
    

#Uncomment the line below when your function is done
print(double_index([3, 8, -10, 12], 2))

cc01ce249bc299233df180589a578176aba8174c
<mask token>

<mask token>


def double_index(lst, index):
    try:
        lst[index] = lst[index] * 2
        return lst
    except IndexError:
        return lst


<mask token>

<mask token>


def double_index(lst, index):
    try:
        lst[index] = lst[index] * 2
        return lst
    except IndexError:
        return lst


print(double_index([3, 8, -10, 12], 2))

"""
CODE CHALLENGE: LISTS
Double Index
double_index(lst, index)
"""

#Write your function here

def double_index(lst,index):
	try:
		lst[index] = lst[index] * 2
		return lst
	except IndexError:
		return lst
    

#Uncomment the line below when your function is done
print(double_index([3, 8, -10, 12], 2))
