hacker rank python problem(list comprehension)solution
LIST COMPREHENSIONS
x = int(input())
y = int(input())
z = int(input())
n = int(input())
arr = [[i, j, k]for i in range(0, x+1) for j in range(0, y+1) for k in range(0, z+1) if i+j+k!=n]
print(arr)
x = int(input())
y = int(input())
z = int(input())
n = int(input())
arr = [[i, j, k]for i in range(0, x+1) for j in range(0, y+1) for k in range(0, z+1) if i+j+k!=n]
print(arr)
Comments
JAVA Training in Chennai
Selenium Training in Chennai
Python Training in Chennai
AWS Training in Chennai
Data Science Course in Chennai
DevOps Training in Chennai