[Solved] how do I insert a question mark before every comma in a string python? [closed]

[ad_1]

you could do this

string.replace(",", "?,")
print(string)

would output in:

'the?, quick?, brown?, fox?, jumps?, over?, the?, lazy?, dog'

[ad_2]

solved how do I insert a question mark before every comma in a string python? [closed]