Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # How many number we have to sort
- num = int(input("How many figures : "))
- storage = []
- result = []
- # Creating an array of users numbers
- for i in range(1,num+1):
- a = int(input("Enter value" + str(i) + " : "))
- storage.append(a) # user enter
- # Sorting the array
- for m in range(len(storage)):
- b = min(storage)
- storage.remove(b)
- result.append(b) # user get
- j = ' '.join(str(i) for i in result)
- print(j)
Add Comment
Please, Sign In to add comment