When a user is prompted for a file name and they enter it, is there a way for the file to load and print out just a list of keys and then ask what they would like translated?
It depends if the file has a dictionary in it.
Your best bet is to use JSON to dump a dictinary to a file, the read it back and use that as a dictionary; then you can print the keys of the dic straight, or actually make a list of keys:
print([k for k in mydic.keys()])
Thanks. The print([k for k in mydic.keys()]) worked. Thank you very much.