Answers for "What does split(',') do in pyhton"

24

split string python

file='/home/folder/subfolder/my_file.txt'
file_name=file.split('/')[-1].split('.')[0]
Posted by: Guest on April-01-2020

Code answers related to "What does split(',') do in pyhton"

Python Answers by Framework

Browse Popular Code Answers by Language