Skip to content

Instantly share code, notes, and snippets.

@powerdefy
Created April 19, 2020 07:39
Show Gist options
  • Save powerdefy/cdf347b8ba29f379fe4a398033075be2 to your computer and use it in GitHub Desktop.
Save powerdefy/cdf347b8ba29f379fe4a398033075be2 to your computer and use it in GitHub Desktop.
def make_str(string: str) -> str:
r = []
w = len(string)
for i in range(w):
for j in range(w-i):
s = string[i:i + j + 1]
r.append(s)
return r
# print(make_str('ABC'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment