Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 248 Bytes

File metadata and controls

11 lines (9 loc) · 248 Bytes

What Did I Learn?

In this challenge I learned more about logic:

  1. Swapping the last element with the first until you reach the middle of the list
while l > count:
    s[count], s[l] = s[l], s[count]
    count += 1
    l -= 1