Respuesta :
Answer:
take user input element of list and print element of list whose value are less than equal to last value of list
Image 1: Input
def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):
print("The integers that are less than or equal to", upper_threshold, "are:")
for value in user_values:
if value < upper_threshold:
print(value)
def get_user_values():
n = int(input("Enter the number of integers in your list: ");
1st = []
print("Enter the", n, "integers:");
for i in range(n):
1st.append(int(input)
return ist
if _name__ == '_main_':
userValues = get_user_values();
upperThreshold = int(userValues[-11), output ints less than or equal to threshold(userValues, upperThreshold)
Image 1: Output
Enter the number of integers in your list: 3 Enter the 3 integers:
10
50
20
The integers that are less than or equal to 20 are:
10
![Ver imagen genan](https://us-static.z-dn.net/files/df6/f50fc7f2a8c0a6605d20d213a78ef728.png)
![Ver imagen genan](https://us-static.z-dn.net/files/d62/dd86929c67d562df4e5e56e8122f8757.png)
Using the knowledge in python it is possible to write a code that uses the given values to write its divisors.
Writing code in python:
integer i
integer threshold
integer array(5) data
for i = 0; i < data.size; i = i + 1
data[50, 60, 140, 200, 75, 100] = Get next input
threshold = Get next input
for i = 0; i < data.size; i = i + 1
if data[50, 60, 140, 200, 75, 100]
See more about python at brainly.com/question/18502436
#SPJ1
![Ver imagen lhmarianateixeira](https://us-static.z-dn.net/files/d4d/e4a4efc0571cbdbd321d68c35ea0873b.png)