@web3--nerd
i just thought I should have shared the code so anyone want to running it can copy and go to vs or terminal to run it
code :
a = "basepost"
for i in range(0,len(a)-1):
if (i==0):
print(a)
else:
print(a[:-i])
j = 1
for i in range(len(a)):
b = a[:j]
print(b)
j+=1