Question: Write a Python function that accepts three arguments: an array, the size of the array, and a number n. Assume the array contains float values.
Write a Python function that accepts three arguments: an array, the size of the array, and a number n. Assume the array contains float values. The function should display all float values in the array that are less than the number n. Use a while loop to go through the list of numbers.
Show that your function works with 100.97, 2.2, 10.8, 87.1, 25.4, 30.3, 50.1, 297.0, 73.8] and the value 50.3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
