summaryrefslogtreecommitdiff
path: root/comp/hw/109/matrix.py
blob: 3e95ff2e015db3a08245495ce59e2be46b88ec04 (plain)
1
2
3
4
5
6
7
8
9
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")