Respuesta :
Below is the program to print a range of numbers.
Explanation:
NumList = []
Number = int(input("Please enter the Total Number of List Elements: "))
for i in range(1, Number + 1):
value = int(input("Please enter the Value of %d Element : " %i))
NumList.append(value)
print("The Smallest Element in this List is : ", min(NumList))
print("The Largest Element in this List is : ", max(NumList))
The above program prints both the smallest and the highest number. Here in this program for loop is used. Using this for loop the program will be executed.