summaryrefslogtreecommitdiff
path: root/comp/hw/109/matrix.py
diff options
context:
space:
mode:
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")