I have a main project and body. It creates a file containing the name of the country and the population in the form of a list. For ex-Armenia=[32,43,54,65,71].
How do I get the list from this file to plot it on a graph on the main program? I tried using ‘for file in open(‘Pop2020.py’,’r’):’ but failed.
Thanks in advance
Source: Python Questions