If all rows contains 1 to 4 numbers then it is true else false
Expert's answer
n = int(input())
for i inrange(n):
flag = True
nums = [int(j) for j ininput().split()]
for j inrange(n):
if j+1notin nums:
flag = Falsebreakprint(flag)
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot