Welcome to Westonci.ca, the place where your questions are answered by a community of knowledgeable contributors. Connect with professionals on our platform to receive accurate answers to your questions quickly and efficiently. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

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