On Wednesday, 23 January 2019 14:06:29 GMT Ralph Corderoy wrote: > Perhaps that's influencing Google's rankings, although the top hits for > `python find index of minimum item in list' look good to me.
Hmmm. That is almost identical to the search that I was performing, but I got nothing useful. I think that Google's rankings are influenced most heavily by previous searches by the person making the query and then by the queries made by the general population. > 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-ra > nge I did find that page, but didn't find anything to help me find the index of the min value. Believe it or not :-) I do understand the basics of lists. > (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.) Yes. But the real problem for the beginner is knowing that min() can be used on the list object. Once you've got it firmly in your head that *everything* is an object in Python, then you can start to do things like v.index(min(v)) or lowi = l.index(low). I did know that in principle, but I've not got it firmly in my head yet. -- Terry Coles -- 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