How to short the string variable ?
Hi folks,
When I use this:
filename = os.path.basename(savecases)
I get something like "summer_light.sav"; the extension comes as well. Please, is there a python code to shorten it to "summer_light" only, I mean, to get rid of the extension ?
Thanks a lot, Andre
add a comment
