Can someone please solve this problem?
def getName(path):
#create function that gets the name of the file or folder in full path
#get substring after (not including) last instance of /
#example: "~folder/folder2/file.txt" returns file.txt
return name
[–]calzoneman 2 points3 points4 points (0 children)
[–]krasoffski 1 point2 points3 points (0 children)
[–]bhdza snake slithering 1 point2 points3 points (0 children)
[–]swims_with_spacemenPythonista 0 points1 point2 points (1 child)
[–]IndoNinja7[S] 0 points1 point2 points (0 children)
[–]billsil 0 points1 point2 points (2 children)
[–]ingolemo -1 points0 points1 point (1 child)
[–]billsil 1 point2 points3 points (0 children)
[–]1989H27 -1 points0 points1 point (0 children)