I'm trying to re-write the following in a list comprehension, but I'm struggling to add the counter in:
create_list = []
    counter = 0
    for x in my_list:
        create_list.append(f(x+counter))
        counter += 1
I've tried:
create_list = [f(x+counter) for x in my_list] but obviously this doesn't increase the counter. 
 
     
    