I have a text file containing a series of numerical values. Lets say the .txt file is called numbers.txt and it contains the values (283, 927, 273, 284, 251). How do I use python to create a line graph of these values?

The x-axis tells us what position the number is in within the series. For instance, 927 is 2nd so x=2. In other words the coordinates would be (1, 283), (2, 927) etc.

Thank you