guys I wanted to sort a pre defined list in ascending and descending order of user input value. It suppose to take a max and min value from user and see those values in the list and then print in ascending and descending order. IDK how to use range function to achive this task so if some one can help please :D Here is the code that i DID and want to use that list

```
userInputMax = input("Please enter max value")
userInputMin = input("Please enter min value")

priceList = [399, 4369, 539, 288, 109, 749, 235, 190, 99, 1000]

print(priceList)

```

Output should be like if user says Maximum value is 1000 and min value is 99 so the output be like 99, 109, 235, 288, 399, 539, 749, 1000