Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rotate_pairs does not find all possible rotate pairs #69

Open
DavidVFitzGerald opened this issue Oct 6, 2020 · 0 comments
Open

rotate_pairs does not find all possible rotate pairs #69

DavidVFitzGerald opened this issue Oct 6, 2020 · 0 comments

Comments

@DavidVFitzGerald
Copy link

It appears that the function rotate_pairs (solution for Exercise 11.5) does not check for all rotated words, due to the stop argument of the range being 14 instead of 26. For example, passing the word "act" as argument should print out "act 24 yar", but currently does not print out anything. It's also possible to avoid iterating through all possible rotated words for each word in the list of words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant