Assume I have the list=[1,2,3,4] then I want to make the list of strings which length of each string associated with the corresponding value in a list.
It means a final output should be like this:
strs=['1', '11', '111', '1111']
I tried a code below but I am not sure how to continue.
lis=[1,2,3,4]
strs=[]
for i in range (len(lis)):
st=lis[i]
strs.append(st)