3 ms·
If you enclose the expression with parenthesis, you can indent it however you like: print ('\n' .join(max (4-i, i-5) * ' ' + (min(i, 9
by rbonvall 16y ago
If you enclose the expression with parenthesis, you can indent it however you like:
print ('\n'
.join(max
(4-i, i-5) *
' ' + (min(i, 9
-i) * 2 + 1) * '*'
for i in range
(0, 10)
))