PCEP Functions, Tuples, Dictionaries and Exceptions • 15 Questions
15 PCEP Functions, Tuples, Dictionaries and Exceptions practice questions with answers and explanations. Free, no signup.
A developer writes a function to calculate the average of a list of numbers, but the function sometimes returns a wrong result when the list contains non-numeric values. What is the best way to handle this?