How to display the largest and smallest number in python

I have two questions:

How to display the largest and smallest number which accept 5 numbers from user input

How can I validate user input to take only numbers.

Here is my code :

input_set = list()
num = input("Enter how many elements you want:")
print("Enter numbers in array:")
for i in range(int(num)):
n = int(input("input number :"))
input_set.append(int(n))
print ("ARRAY: ", input_set)
largest = input_set[0]
for i in range(len(input_set)):