I actially goten the code from the techer. I am not gettign output. What is error. It is out of index. I dont understand pls help.
def something(tu):
ch='a'
for i in tu:
tu[i]=ch
ch+='a'
l=[1,4,2,3,8]
something(l)
for i in l:
print(i)
print("The end!")
The expted output is
a
aa
aaa
aaaa
aaaaa
The end!
Thank you