I have never used python in my life. I need to make a little fix to a given code.
I need to replace this
new_q = q[:q.index('?')] + str(random.randint(1,rand_max)) + q[q.index('?')+1:]
with something that replace all of the occurrence of ? with a random, different number.
how can I do that?
or without regexp: