Manually implement a function that finds the smallest value in a list of integers and print it.

def findMin(list): min = list[0] for i in range(1, len(list)): if list[i] < min: min = list[i] print(min)

DH

Related Python Mentoring answers

All answers ▸

Create a python code to sum the number from 1 to 10.


Sort a given input of lowercase letters alphabetically


Create a program that generates prime numbers between two integer boundareis


What is the difference between a for and a while loop?