So I have a text file with the text below:
{'Maps': {'Usefulness':80,'Accesibility':70,'Popularity':90}
(the dictionary carries on that's why there may be a few syntax issues)
How do I convert this text into python code inside my program?
eg:
if the text files name is x.txt
textfile = convert(x.txt)
print(list(textfile.keys()))
the output would look something like
['Maps','Drive','Chrome']