1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00

feat(solutions): add sorting-algorithms/python/function

This commit is contained in:
Divlo 2021-06-30 12:34:29 +02:00
parent b70b089702
commit d16d026672
No known key found for this signature in database
GPG Key ID: 185ED2F15F104E52
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# sorting-algorithms/python/function
Created by [@Divlo](https://github.com/Divlo) on 30 June 2021.

View File

@ -0,0 +1,11 @@
from typing import List
import sys
numbers: List[int] = []
for value in sys.stdin:
numbers.append(int(value.rstrip('\n')))
numbers = numbers[1:]
sorted_numbers = sorted(numbers, key=int)
for number in sorted_numbers:
print(number)