0
Can u help me in combination of a string in python?
Eg : The string is jhon Combinations like jhon, hjon, ohjn... Etc
2 Answers
+ 3
from itertools import permutations as p
for i in list(p("jhon")):
print(i)
+ 2
Thanks alot Namit Jain
Eg : The string is jhon Combinations like jhon, hjon, ohjn... Etc