I'm stuck in this program, I can not create a function in Python.
The exercise is as follows:
Write a function called getMenor () that takes a list of integers and returns the least of the elements. Also, write the main program that passes the list to the function and displays the return. The search for the smallest element must be done using repetition structure, and the use of the min () function is forbidden. Example:
Input: 7.0 5.5 6.0 9.0 Output: 5.5
What I've done so far:
listaInteiros = []
i = 0
while i < 4:
inteiros = int(input())
listaInteiros.append(inteiros)
i += 1
print(listaInteiros)
def buscarMenor():
I'm stuck in the role, please give me some strength!