Re: [Tutor] Retrieving numbers from a text

2012-10-23 Thread Steven D'Aprano
On 24/10/12 09:45, Rufino Beniga wrote: My problem is, I don't know how to get ONLY the numbers from the OneDMap.txt file. Also, assuming that I am able to do just that, how would I get them into an array? What we need to see is typical contents of your file. I expect it looks something like

Re: [Tutor] Retrieving numbers from a text

2012-10-23 Thread Alan Gauld
On 23/10/12 23:45, Rufino Beniga wrote: First, you realize I hope that we don;t do homework for you but we will try to help steer you the right way... So the simple answer is... > -- > tell me i can't do it, then i'll prove you wrong! OK, You can't do it. Is that enough? I thought not, rea

[Tutor] Retrieving numbers from a text

2012-10-23 Thread Rufino Beniga
*Problem*: Analyze a chaotic one-dimensional map: Write a program OneDMapAnalyze.py that reads the data in OneDMap.txt. Calculate the mean value of the iterates, printing the result to the terminal; again annotate the output so that it is understandable. Determine the fraction of iterates that have