Python : Increase a string

Solution 1:

You can use format to convert int to your hex string, which will not keep the 0x prefix:

string = "11223300"
counter = int(string, 16)

for i in range(255): 
    counter = counter + 1
    IV = format(counter, 'X')
print(IV)

Output:

112233FF