Respuesta :
Answer:
Code is in the provided screenshot!
Attached also is the example output!
Explanation:
Steps to solve this problem.
1) Input an initial amount to know how many values of the array we are expected to populate.
2) Populate each index of the array with a value input.
3) Get the threshold number from the input
4) Print all numbers that are smaller than the threshold and are not 0 (null).


Answer:
def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):
for value in user_values:
if value < upper_threshold:
print(value)
def get_user_values():
n = int(input())
lst = []
for i in range(n):
lst.append(int(input()))
return lst
if __name__ == '__main__':
userValues = get_user_values()
upperThreshold = int(input())
output_ints_less_than_or_equal_to_threshold(userValues, upperThreshold)
Explanation:
