Created
June 29, 2016 16:06
-
-
Save baconstrudel/6eef7057c81c7980cdeca619ae3299c6 to your computer and use it in GitHub Desktop.
https://gist.github.com/00111000/b835c6391772182295ed75822f2ab12f without list comprehensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
your_list = 'abcdefghijklmnopqrstuvwxyz | |
complete_list = [] | |
for current in range(3): | |
a = [] | |
b = [] | |
for i in your_list: | |
a.append(i) | |
for y in range(current): | |
for i in your_list: | |
for x in a: | |
b.append(x + i) | |
complete_list += b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment