Aug-25-2019, 10:13 PM
number = [2, 3, 4, 9, 8, 5, 1] def checkList(List1): for i in range(len(List1) - 1): #dont understand what you want me to do here if List1[i] == 9 and List1[i + 1] == 9: return True return False checkList(number)i dont get any error when i run the code but i also dont get any output