abs_more_than_10#
Write a while loop that iterates through a list, nums
, and determines whether or not it contains a value whose absolute value is greater than 10. Write a function abs_more_than_10
that takes a list of numbers as input and returns True
when the list contains a value whose absolute value is greater than 10 and returns False
otherwise.
Sample Input 1:
8 -4 7 12
Sample Output 1:
True
Sample Input 2:
-17 3 4
Sample Output 2:
True
Sample Input 3:
13 0
Sample Output 3:
True
Sample Input 4:
-10 2 -5
Sample Output 4:
False