I have a string
string='texttexttextblahblah",".'
and what I want to do is cut of some of the rightmost characters by indexing and assign it to string
so that string
will be equal to texttexttextblahblah"
I've looked around and found how to print by indexing, but not how to reassign that actual variable to be trimmed.