15 lines
275 B
Python
15 lines
275 B
Python
|
|
from random import randint
|
||
|
|
|
||
|
|
mat = [[randint(1, 20) for x in xrange(10)] for y in xrange(10)]
|
||
|
|
|
||
|
|
found20 = False
|
||
|
|
for row in mat:
|
||
|
|
for item in row:
|
||
|
|
print item,
|
||
|
|
if item == 20:
|
||
|
|
found20 = True
|
||
|
|
break
|
||
|
|
print
|
||
|
|
if found20:
|
||
|
|
break
|