you could do this
string.replace(",", "?,")
print(string)
would output in:
'the?, quick?, brown?, fox?, jumps?, over?, the?, lazy?, dog'
solved how do I insert a question mark before every comma in a string python? [closed]
you could do this
string.replace(",", "?,")
print(string)
would output in:
'the?, quick?, brown?, fox?, jumps?, over?, the?, lazy?, dog'
solved how do I insert a question mark before every comma in a string python? [closed]