a=[n[i:j] for i in range(len(n)) for j in range(i+1,len(n)+1)] # for i in range(len(n)): # for j in range(i+1,len(n)+1): ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible resultsResults that may be inaccessible to you are currently showing.
Hide inaccessible results