Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Loops-Nested/Python/loops-nested-3.py
Normal file
14
Task/Loops-Nested/Python/loops-nested-3.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue