array = [] max = -10000000 while len(array) < 3: num = int(input("Enter a number: ")) array.append(num) for i in array: if i > max: max = i print("The highest value is", max)