im having some trouble. with: 8.6 Code Practice: Question 2

heres the question:
Copy and paste your code from the previous code practice. If you did not successfully complete it yet, please do that first before completing this code practice.

After your program has prompted the user for how many values should be in the list, generated those values, and printed the whole list, create and call a new function named diffList. In this method, accept the list as the parameter. Inside, you should add up the negatives of all the values in the list and then return the result back to the original method call. Finally, print that difference of values.

Sample Run
How many values to add to the list:
8
[117, 199, 154, 188, 155, 147, 111, 197]
Total -1268

heres my code from question one:
import random

def buildList(myList,numValues):

for i in range(numValues):
myList.append(random.randint(100, 199))
return myList

numValues = int(input("How many values to add to the list: "))
list=[]
myList = buildList(list,numValues)

print(myList)

myList.sort()

print(myList)

can somone help me. i cant find anything on the internet and no ai scorce is giving me 100%