summaryrefslogtreecommitdiff
path: root/comp/hw/109/matrix.py
diff options
context:
space:
mode:
authorstandenboy <standenboy@StandenboyLAP.lan>2024-01-10 13:44:03 +0000
committerstandenboy <standenboy@StandenboyLAP.lan>2024-01-10 13:44:03 +0000
commit5fbd145a080da6c02a15cd4f78fab940ce046b09 (patch)
tree11dbd1ece3de65b24e78535f32bc262005d5c2bf /comp/hw/109/matrix.py
parentf267b783b87353a70eacf786e940d5d480c4da03 (diff)
added 109 homework
Diffstat (limited to 'comp/hw/109/matrix.py')
-rw-r--r--comp/hw/109/matrix.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/comp/hw/109/matrix.py b/comp/hw/109/matrix.py
new file mode 100644
index 0000000..3e95ff2
--- /dev/null
+++ b/comp/hw/109/matrix.py
@@ -0,0 +1,10 @@
+matrix = [[1,2,3],[4,5,6],[7,8,9]]
+
+num = int(input("number: "))
+
+for i in matrix:
+ for j in i:
+ if j == num:
+ print("true")
+ exit(0)
+print("false")