Question: 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

 Write a while loop that iterates through a list, nums, and

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. Use the boolean variable abs_more_than_10 to store whether or not the list contains a value whose absolute value is greater than 10. The list of numbers used for each test is shown in the sample input. These numbers have already been read in and stored into the list nuns . You do not need to read in any input and can use from the beginning of your program. You do not need to print anything at the end of your program. At the end of your program, the tests will check the value of against the expected sample output. Hint: We have written the first line, initializing as False. You should update this variable in the loop body. Sample input 1: 8=4712 Sample Output 1: True Sample input 2: 1734 Sample Output 2: True Sample Input 3: 130 Sample Output 3: True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!