In the code:
inF = open(input("Enter Filename: "),'r') import inF inF
Is there any way I can import the filename that the user inputs?
@Coder100 Sorry, let me rephrase that. How would I make it read the file that has been imported? eg:
import other.py other.py
where the other.py at the end outputs the file
other.py
How can I open a file based on user input?
In the code:
Is there any way I can import the filename that the user inputs?
@Coder100 Sorry, let me rephrase that. How would I make it read the file that has been imported? eg:
where the
other.py
at the end outputs the file