The first line of code imports the random number generation module; without it, we wouldn't be able to create those random numbers. Then, we define main(), which is the entry point of our application.
I chose to name the random numbers num1... num5. It's a simple naming convention, but it does the job. As you can see by looking at the values inside the parenthesis, the value of each random number ranges from 1 to 100.
We create a list called... num_list which stores those five numbers, and then we sort them in ascending order using the sort() method.
The only thing that's left now is to display those random numbers. We print a text on the screen, and then we use a "for" loop. This loop will repeat the "print(num)" action over and over until it processes all the numbers inside num_list, which means that it will display all the numbers on the screen.
If you press "Run" again, the application will generate another set of random numbers.
I hope that you liked this quick tutorial; it shows how many things you can do with Python using only a few lines of code. I'll try to find the time and create another blog post that shows more Python-related coding tricks soon.