summaryrefslogtreecommitdiff
path: root/comp/hw/110/search.py
diff options
context:
space:
mode:
authorstandenboy <standenboy@StandenboyLAP.lan>2024-01-17 13:13:58 +0000
committerstandenboy <standenboy@StandenboyLAP.lan>2024-01-17 13:13:58 +0000
commite8366ab41644102a8db2ac0740212de982eb043b (patch)
treefe4ae3dbd332e19cc29f4109e10dad0146612d51 /comp/hw/110/search.py
parent5fbd145a080da6c02a15cd4f78fab940ce046b09 (diff)
did some comp sci homework
Diffstat (limited to 'comp/hw/110/search.py')
-rw-r--r--comp/hw/110/search.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/comp/hw/110/search.py b/comp/hw/110/search.py
new file mode 100644
index 0000000..99f8b3d
--- /dev/null
+++ b/comp/hw/110/search.py
@@ -0,0 +1,12 @@
+names = ["jacob", "thor", "katelyn", "johnson"]
+
+searchingFor = input("name to look for: ")
+for i in names:
+ if i == searchingFor:
+ print("found name")
+ exit(0)
+
+print("name not found")
+
+
+