Considering a python list, how can I compare current item to next it ? for example:
mylist = [1, 2, 2, 4, 2, 3]
for i in mylist:        
    if i == next item:
       replace (both i and next item) with "same value"
 >>> [1, "same value", "same value", 4, 2, 3]  
 
    