This is what code I currently have (But in simplified form):
Example = [0, 0, 0, 0, 1]
Test = random.randint(0,len(Exmaple))
if Example[Test] == 1:
print("Working")
else:
print("Not Working")
I want it to print "Working" by detecting if it lands on the integer 1 I could do Example[4] but I want to change the amount of items there are in the list, so it would work if I changed Example to [0, 0, 0, 0, 0, 1]