Skip to content

Commit

Permalink
problem4(List Comprehensions) is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
well-balanced committed Oct 24, 2019
1 parent b54a229 commit 5c9ab44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions problem_4.py
@@ -0,0 +1,6 @@
if __name__ == '__main__':
x = int(input())
y = int(input())
z = int(input())
n = int(input())
print( [[i,j,k] for i in range(x+1) for j in range(y+1) for k in range(z+1) if i+j+k!=n] )

0 comments on commit 5c9ab44

Please sign in to comment.