import numpy as np
d={}for i inrange(26):
d[i+1]=chr(97+i)
from itertools import product
from itertools import combinations
import itertools
d={}for i inrange(26):
d[i+1]=chr(97+i)deffunc1(num_list):
res_list=[]for i inrange(len(num_list)+1):
res_list+=list(combinations(num_list, i))return res_list
deffun2(digit):
l=list(str(digit))
l1=func1(l)
ss=set(l1)
l2=[]for s in ss:ifnot s orlen(set(s))==1:continueelse:
l3=[]for i in s:
m=int(i)
n=d[m]
l3.append(str(n))
elem=''.join(l3)
l2.append(elem)return l2
digit=1213print(fun2(digit))