Here is what I have been trying to use:
filename = str(input("Enter a file name: "))
file = filename.split('.')
file = file[0]
from file import *
However, the interpreter doesn't attempt to look for the variable assigned to file, and looks for a module named 'file' does anyone have a solution to this?