Create a Python program which prints a list of 4 different random numbers between 1 and 9 each time it runs. Sort the numbers in the list in ascending order before printing the list.


Hint:

1. Use random.randint() function from the random module to generate the numbers

2. Use a while loop to generate the numbers and append them to the list.

3. Add the random number to the list only if it is not already in the list.


See the video below to see the sample output from the program.