''' Create a function that takes a string and returns a new  string with each
    character accumulating by +1. Separate each set with a dash. '''

def accum(txt):
    lst = []
    for i in range(len(txt)):
        lst.append(txt[i].capitalize() +txt[i].lower() * i)
    new_txt = "-".join(lst)
    return new_txt

print(accum('abcd'))
print(accum("RqaEzty"))
print(accum("cwAt"))
417f4fa8b01dc65f07b2db68673e19f34bb0b76f
<mask token>

<mask token>


def accum(txt):
    lst = []
    for i in range(len(txt)):
        lst.append(txt[i].capitalize() + txt[i].lower() * i)
    new_txt = '-'.join(lst)
    return new_txt


<mask token>

<mask token>


def accum(txt):
    lst = []
    for i in range(len(txt)):
        lst.append(txt[i].capitalize() + txt[i].lower() * i)
    new_txt = '-'.join(lst)
    return new_txt


print(accum('abcd'))
print(accum('RqaEzty'))
print(accum('cwAt'))

''' Create a function that takes a string and returns a new  string with each
    character accumulating by +1. Separate each set with a dash. '''

def accum(txt):
    lst = []
    for i in range(len(txt)):
        lst.append(txt[i].capitalize() +txt[i].lower() * i)
    new_txt = "-".join(lst)
    return new_txt

print(accum('abcd'))
print(accum("RqaEzty"))
print(accum("cwAt"))