Answer:
import random as rd
def buildList(prevList, n):
for i in range(n):
number = rd.randint(100,199)
prevList.append(number)
emptyList = []
n = int(input("How many values to add to the list: \\").strip())
buildList(emptyList,n)
print(emptyList)
emptyList.sort()
print(emptyList)