python converting string to int and adding 1
im stuck, im trying to add these together but instead of getting 8+7 = 15 im getting 8+7 = 87

I am converting count_current to an integer but it still doesn't work:



    count_current = int(count_current)
    
    for playlist in playlists_data:
        count_current += 1




any help is much appreciated
thanks
J
python converting string to int and adding 1
===

im stuck, im trying to add these together but instead of getting 8+7 = 15 im getting 8+7 = 87

I am converting count_current to an integer but it still doesn't work:



    count_current = int(count_current)
    
    for playlist in playlists_data:
        count_current += 1




any help is much appreciated
thanks
J