I'm a first year compsci student who's extremely lost on this assignment. We are supposed to prompt a user for a number of random numbers to be generated and saved to a file. He gave us that part. The part we have to do is to open that file, convert the numbers into a list, then find the mean, standard deviation, etc without using the easy built in python tools.
I'm decent at math, so I figured out how to do all the following given a list, but I cannot figure out how to get the numbers from the file and make them a list. I've tried using open
but it gives me invalid syntax (the file name I chose was "numbers" and it saved into "My Documents"
automatically, so I tried open(numbers, 'r')
and open(C:\name\MyDocuments\numbers, 'r')
and neither one worked).