Skip to content

Instantly share code, notes, and snippets.

@aliorhun
Created August 10, 2020 18:43
Show Gist options
  • Select an option

  • Save aliorhun/cebe3120719a9f0f0a7a30a9c62b639c to your computer and use it in GitHub Desktop.

Select an option

Save aliorhun/cebe3120719a9f0f0a7a30a9c62b639c to your computer and use it in GitHub Desktop.
pythonnasilyazilabilir.py
# pip3 install more-itertools
# python3 pythonnasilyazilabilir.py
import itertools
a=list(itertools.permutations(["p", "y", "t", "h", "o", "n"]))
for i in range (1,len(a)):
for j in range (0,5): print(a[i][j],end="")
print(" ",end="")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment