You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final = [inputlist[x] for x in range(0, len(inputlist)-1) if not inputlist[x]==inputlist[x+1]]
final.append(inputlist[-1])
return final
print("Given a list of numbers, return a list where all adjacent == elements have been reduced to a single element, so [1, 2, 2, 3] returns [1, 2, 3]. You may create a new list or modify the passed in list.")