Skip to content

Instantly share code, notes, and snippets.

@baconstrudel
Created June 29, 2016 16:06
Show Gist options
  • Save baconstrudel/6eef7057c81c7980cdeca619ae3299c6 to your computer and use it in GitHub Desktop.
Save baconstrudel/6eef7057c81c7980cdeca619ae3299c6 to your computer and use it in GitHub Desktop.
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