From 4a95719d58a708ad55b1389631d6339047f786a0 Mon Sep 17 00:00:00 2001 From: standenboy Date: Fri, 15 Dec 2023 10:19:20 +0000 Subject: added existing work --- comp/hw/1/3.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 comp/hw/1/3.py (limited to 'comp/hw/1/3.py') diff --git a/comp/hw/1/3.py b/comp/hw/1/3.py new file mode 100755 index 0000000..a84d7e2 --- /dev/null +++ b/comp/hw/1/3.py @@ -0,0 +1,10 @@ +import sys +num = [] +num.append(int(input("number: "))) +num.append(int(input("number: "))) +num.append(int(input("number: "))) + +num.sort() +for i in num: + sys.stdout.write(f"{i} ") +print("\n") -- cgit v1.2.3