Let's say:
s = "this is a sentence. My GPA is 1.10. Thanks to StackOverflow, otherwise I would have a lower one."
I want the following:
new_s = "this is a sentence my gpa is 1.10 Thanks to StackOverflow otherwise I would have a lower one"
This is what I do:
new_s = s.lower()
new_s = new_s.replace(',', '')
where I struggle is with replacing the point that goes in 1.10
if I do:
new_s = new_s.replace(',', '')
I won't get the desired output. is there a way to select only the desired points (not used to depict decimal numbers)?