Hi Terry, > That works!
I'm surprised you're surprised. :-) > Tim also gave me a different technique off list: > > v.index(min(v)) On list, I think; I saw it too after I'd written. It's the same approach as me, just doing the one thing you were having trouble with. > So why were all my searches sending me to pages that used numpy (and > none of them worked) ;-( IMHO Python's on the wane for general-purpose programming. The areas where it's seeing growth is for numerical, statistical, and machine learning, and all of those pull in machine-code libraries to do the heavy work with Python as the `glue' language to orchestrate the labour. Perhaps that's influencing Google's rankings, although the top hits for `python find index of minimum item in list' look good to me. And then perusing the documentation for the `list' that you had would give you a grounding in what's built in. https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range (Knowing a language is lots more than its syntax these days. Familiarity with the standard library is often over half the learning, especially on smaller, simpler languages, like Go.) Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-02-05 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk