I was looking for how to get my code running. Then I found something in Stack Overflow that works, but I don't understand it. I'm having a hard time understanding the 2nd line.
file = input("File name: ").casefold().strip()
fileType = file[file.index("."):] # I don't understand this line
fileType = fileType[1:]