Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Loops-Nested/Python/loops-nested-1.py
Normal file
14
Task/Loops-Nested/Python/loops-nested-1.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from random import randint
|
||||
|
||||
def do_scan(mat):
|
||||
for row in mat:
|
||||
for item in row:
|
||||
print item,
|
||||
if item == 20:
|
||||
print
|
||||
return
|
||||
print
|
||||
print
|
||||
|
||||
mat = [[randint(1, 20) for x in xrange(10)] for y in xrange(10)]
|
||||
do_scan(mat)
|
||||
Loading…
Add table
Add a link
Reference in a new issue