A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
1
Task/List-comprehensions/Python/list-comprehensions-1.py
Normal file
1
Task/List-comprehensions/Python/list-comprehensions-1.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
[(x,y,z) for x in xrange(1,n+1) for y in xrange(x,n+1) for z in xrange(y,n+1) if x**2 + y**2 == z**2]
|
||||
1
Task/List-comprehensions/Python/list-comprehensions-2.py
Normal file
1
Task/List-comprehensions/Python/list-comprehensions-2.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
((x,y,z) for x in xrange(1,n+1) for y in xrange(x,n+1) for z in xrange(y,n+1) if x**2 + y**2 == z**2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue