diff options
author | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
---|---|---|
committer | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
commit | 4a95719d58a708ad55b1389631d6339047f786a0 (patch) | |
tree | 26cb6fc2dbe7fa75f57f1d6fb13aff8955772b56 /comp/hw/1/2.py |
added existing work
Diffstat (limited to 'comp/hw/1/2.py')
-rwxr-xr-x | comp/hw/1/2.py | 7 |
1 files changed, 7 insertions, 0 deletions
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") |