Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Checking number in a list to see if they are beside each other
Post: RE: Checking number in a list to see if they are b...

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: ret...
Allaye General Coding Help 5 5,882 Aug-25-2019, 10:13 PM
    Thread: Checking number in a list to see if they are beside each other
Post: Checking number in a list to see if they are besid...

List1 =[2,3,4,9,9,5,1] def checkList(List1): for i in range(len(List1 - 1)): if List1[i] == 9 and List1[i+1] == 9: return True return false i want to check if the numb...
Allaye General Coding Help 5 5,882 Aug-25-2019, 09:33 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020