I have a variable "fileName" = ****.pdb, where the *s are capitalised letters. After a method uses this variable as an argument, I need to change the extension part to .ent without changing the first part. For some reason, none of the str.replace methods seem to work.
How to change part of a variable (string)?
Collapse
X
Comment