Answers for "how to find permutation of three numbers in python list"

1

how to find permutation of three numbers in python list

if __name__ == '__main__':
    x = int(input())+1
    y = int(input())+1
    z = int(input())+1
    n = int(input())
    variable = []
    for i in range(0,x):
        for j in range(0,y):
            for k in range(0,z):
                if ( i+j+k) != n:
                    variable.append([i, j, k])
print(variable)
Posted by: Guest on July-16-2021

Code answers related to "how to find permutation of three numbers in python list"

Python Answers by Framework

Browse Popular Code Answers by Language