Saturday 30 November 2013

How to do selection sorting in Python 3.3.2 (For Integer Values)

Hi Guys! Today i am here with the Program which will sort the given list in ascending order.
So here it is:

1. This is a UDF (User Defined Function) which sorts the list provided by the user in Ascending order.The program asks the amount of numbers from the user to sort and then prompts him to enter the values one by one.
"THE PROGRAM HAS BEEN COMMENTED ON THE REQUIRED STATEMENTS FOR THE CONTENTMENT OF THE READER."


NOTE: THIS SELECTION SORT IS ONLY MEANT FOR INTEGER VALUES NOT FOR ANY STRING TYPE. THIS MEANS THAT YOU CAN EVEN APPLY MATHEMATICAL CALCULATION ON YOUR VALUES.
"IN NEXT POST I WILL BE POSTING ABOUT HOW TO SORT STRINGS."

Hope You Must Have Enjoyed The Program!!



4 comments: