how to split a string in python 2.7 code example
Example: split string python
file='/home/folder/subfolder/my_file.txt'
file_name=file.split('/')[-1].split('.')[0]
file='/home/folder/subfolder/my_file.txt'
file_name=file.split('/')[-1].split('.')[0]