diff --git a/projects/001-sorted-order/python/main.py b/projects/001-sorted-order/python/main.py index e69de29b..190bec83 100644 --- a/projects/001-sorted-order/python/main.py +++ b/projects/001-sorted-order/python/main.py @@ -0,0 +1,13 @@ +group_integer = [] + +user_input = int(input('insert an integer: ')) + +while user_input != 0: + group_integer.append(user_input) + user_input = int(input('insert an integer: ')) + +group_integer.sort() + +for numbers in group_integer: + print(numbers) +