Friday , December 15 2017
Home / Tag Archives: anagram solver

Tag Archives: anagram solver

Anagram Generator in python

Here is a python program for anagram generator in python language. Read here to know about what is an anagram def anagram(s): n=len(s) if n == 1: return s sb=[] for i in range(n): sb.append(s[i]) rval=anagram(s[0:i]+s[i+1:n]) if isinstance(rval,str): sb[i]=sb[i]+rval if isinstance(rval,list): c=sb[i] sb[i]= for x in range(len(rval))] if(n==2): return sb else: c=[sb[x][h] for x in range(len(sb)) for h in range(len(sb[x]))] ...

Read More »