Computers, Programming.
(d,a). d is greater than a, so swap the order and write (a,d). Now our array looks like: [‘b’, ‘a’, ‘d’, ‘c’] Here is how to do this in Python. The steps are: Loop through the range the length of the letters array — 1. Since we start counting at 0 the last element is len(letters) — 1. Then repeat