while True: nums = [] for i in range(3): nums.append(int(input("Enter a number: "))) print("The highest value is",max(nums))