Comment on Sierpinski triangle programs by 5 AI models
benni@lemmy.world 3 days ago
It’s not pretty, but you can print one in a single line of python:
print(*[“”.join(" " if i & j else “MM” for j in range(64)) for i in range(64)], sep=“\n”)
Comment on Sierpinski triangle programs by 5 AI models
benni@lemmy.world 3 days ago
It’s not pretty, but you can print one in a single line of python:
print(*[“”.join(" " if i & j else “MM” for j in range(64)) for i in range(64)], sep=“\n”)
monica_b1998@lemmy.world 3 days ago
oh, wow! that’s so cool!