Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Print lists separated by comma
#python 3.5.2 x = 1 y = 1 z = 1 n = 2 for i in range( x + 1): for j in range( y + 1): for k in range( z + 1): if ( ( i + j + k) != n ): print ([ i, j, k], end = ", ") print("\n") x = 1 y = 1 z = 1 n = 2 print(", ".join([str([ 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 ]).strip() );
run
|
edit
|
history
|
help
0
linked_lists
PyList
Dictionary example
multiple inheritance
factoriel function recursive
9202335.py
Saurabh
Itertools-Cartesian-Product-var-args
perform_math.py
Search by starting alphabets.