IDNLearn.com provides a platform for sharing and gaining valuable knowledge. Get comprehensive and trustworthy answers to all your questions from our knowledgeable community members.

how would i put a min function in this code?

largest = int(input("Enter a number: "))


print("Largest: {}".format(largest))

i = 0

while i < 5:

num = int(input("Enter a number: "))

if num > largest:

largest = num

print("Largest: {}".format(largest))

i += 1