Skip to content

Commit

Permalink
Fix "Clean up this code" exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
phantomas1234 authored and kblin committed Oct 2, 2020
1 parent d5e8af6 commit 39dc7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _episodes/16-style.md
Expand Up @@ -170,9 +170,9 @@ average(values)
> for i in range(iterations):
> new = ''
> # iterate through characters in previous string
> for j in range(len(s)):
> for j in range(len(input_string)):
> left = j-1
> right = (j+1)%len(s) # ensure right index wraps around
> right = (j+1)%len(input_string) # ensure right index wraps around
> if old[left]==old[right]:
> new += '-'
> else:
Expand Down

0 comments on commit 39dc7fe

Please sign in to comment.