Computers, Programming.
letters[i+1]=letters[i]. Print the values so we can watch the solution emerge. letters = ['b', 'd', 'a', 'c'] for j in range((len(letters)-1)): for i in range(len(letters)-1): if (letters[i]>letters[i+1]): letters[i],letters[i+1] = letters[i+1],letters[i] print(letters) Outputs this. [‘b’, ‘d’,