Function to determine list max without itertools
2QdxY4RzWzUUiLuE at potatochowder.com
Fri Apr 19 07:38:14 EDT 2019
On 4/19/19 4:01 AM, Sayth Renshaw wrote:
>> Now, what happens when the code is tested with various (different) sets
>> of test-data?
>> (remember the last question from my previous msg!?)
> It fails on any list entry that isn't a float or an int, giving a TypeError.
What if the *first* entry isn't a float or an int? For
instance, what if the list is ['a', 'b', 'c']? What about
['a', 'b', 3]?
More information about the Python-list