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]? Dan -- https://mail.python.org/mailman/listinfo/python-list