alright, before marking as duplicate, listen out.
I have a file with some .py files. I want to import them, I would normaly do import {the name of the file I want}
but I want to chose the name of the file I want like so:
file = input()
import file
what I have tried is:
file = input()
exec('import',file)
which returns me an error,
file = input()
file = importlib.import_module(file)
also returns an error (no module found) and:
file = input()
file = eval(f'import {file}')
which also gives me an error (invalid systax)