Answers for "how does .split work in python"

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
-3

python split string

UserInputs = []
UserInputs = input().split()
Posted by: Guest on March-02-2021

Code answers related to "how does .split work in python"

Python Answers by Framework

Browse Popular Code Answers by Language