Answers for "list comprehension problem solution hackerrank"

1

list comprehension python 3 hackerrank solution

x, y, z, n = int(input()), int(input()), int(input()), int(input())
print ([[a,b,c] for a in range(0,x+1) for b in range(0,y+1) for c in range(0,z+1) if a + b + c != n ])
Posted by: Guest on July-27-2021

Code answers related to "list comprehension problem solution hackerrank"

Python Answers by Framework

Browse Popular Code Answers by Language