mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
feat(solutions): add sorting-algorithms/python/function
This commit is contained in:
@ -0,0 +1,3 @@
|
|||||||
|
# sorting-algorithms/python/function
|
||||||
|
|
||||||
|
Created by [@Divlo](https://github.com/Divlo) on 30 June 2021.
|
@ -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)
|
Reference in New Issue
Block a user