def accum(s):
# your code
list =
for i in s:
list.append(i.upper() + i.lower()*s.index(i))
return "-".join(list)
print(accum(“ZpglnRxqenU”)
You can see the return. The problem is that if the leter repeats its first index, how can i fix it ? if first N has index 4 , second N has 9 but it still gets index 4 ?
Thank you