Code:
def L4(p):
x=[]
for i in range (10):
x.append(randrange(1,7,1))
Part 1 The function that takes an input parameter an empty list. It then creates a list 10 elements long, each consisting of a random number between 1 and 6.
Part 2 Using in and slicing,its supposed to check to see if any of the elements occurred twice. If so, use the index function and...