Need some hints please!

Associate
Joined
8 Oct 2006
Posts
1,236
Hey all,

Not coded for a while, and my problem solving skills leave a lot to be desired at the moment!

Basically, looking to code up a system, and stumped about a small problem of it, to return percentages of probability of guesses,

A comma seperated text file of hundreds of different values in format:

James, 23, 44
Mark, 12, 12
Rick, 77,32
Mark 14, 47
James, 27,27
Rick, 16, 18
James, 23, 23
Mark, 44, 55
James, 23, 44
....

User interaction would be:

User enters: Name and a number

Then program should then find all the rows which start with that name and return percentage of when the 2nd column was guessed, in relation to the true value (third column)

When 'james & 23' was choosen, probability has been:

45% - 23
20% - 44
...etc

Any hints please? Thinking of doing it in Python. Thanks a lot,
 
Back
Top Bottom