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/2.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 comp/hw/1/2.py (limited to 'comp/hw/1/2.py') diff --git a/comp/hw/1/2.py b/comp/hw/1/2.py new file mode 100755 index 0000000..dd1c619 --- /dev/null +++ b/comp/hw/1/2.py @@ -0,0 +1,7 @@ +age = int(input("age: ")) +if age >= 18: + print("user is an adult") +elif age < 13: + print("user is a child") +else: + print("user is a teenager") -- cgit v1.2.3