MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
examplelist = [0,2,1,0,0] zerolist =  for i, j in enumerate(examplelist): if j == 0: zerolist.append(i) elif j == 1: examplelist[i]=0 shuffle(zerolist) if zerolist: examplelist[zerolist]=1
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!