0

Can u help me in combination of a string in python?

Eg : The string is jhon Combinations like jhon, hjon, ohjn... Etc

28th Aug 2020, 6:42 AM
JANGALA SAI GANESH
JANGALA SAI GANESH - avatar
2 Answers
+ 3
from itertools import permutations as p for i in list(p("jhon")): print(i)
28th Aug 2020, 6:52 AM
Namit Jain
Namit Jain - avatar
+ 2
Thanks alot Namit Jain
28th Aug 2020, 6:58 AM
JANGALA SAI GANESH
JANGALA SAI GANESH - avatar