Skip to content

Instantly share code, notes, and snippets.

@RakshithNM
Created October 14, 2016 11:31
Show Gist options
  • Save RakshithNM/1747286f9892abb7886d1e7c200667a9 to your computer and use it in GitHub Desktop.
Save RakshithNM/1747286f9892abb7886d1e7c200667a9 to your computer and use it in GitHub Desktop.
# sort specific number of inputs in non decreasing order
x = int(raw_input())
nums = []
while x > 0:
nums.append(int(raw_input()))
x -= 1
nums.sort()
for sortednum in nums:
print sortednum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment