Hello Im a bit of a noob .. Im trying to make the program print each element double the amount of the previous element starting with one time .. I found a solution but it seems clunky .. is there a better version .. here is the code .
a=['h','ha','hah','jaja','kkkkk']
s=.5
for x in range(len(a)):
s=int(s*2)
n=1
for j in range (s):
print(str(n)+str(a[x]))
n+=1