I'm trying to store in a variable the name of the current file that I've opened from a folder.
How can I do that?
I've tried cwd = os.getcwd()
but this only gives me the path of the folder, and I need to store the name of the opened file.
Can you please help me?