autopushed

This commit is contained in:
2026-08-10 12:33:50 +02:00
parent 845d7034a6
commit f49775fe38
+1 -2
View File
@@ -90,7 +90,7 @@ def hexnum(n):
if k1 == k2:
click.echo(f"The closest centered hexagonal number is [[{h1}]] (index # [[{k1}]]).")
else:
click.echo(f"The closest centered hexagonal numbers are [[{h1}]] (index #[[{k1}]]) and [[{h2}]] (index #[[{k2}]]).")
click.echo(f"The closest centered hexagonal numbers are [[{h1}]] (index # [[{k1}]]) and [[{h2}]] (index # [[{k2}]]).\n")
# Always show first 20 centered hexagonal numbers for context
first_20 = [str(get_centered_hex(i)) for i in range(1, 21)]
@@ -100,4 +100,3 @@ def hexnum(n):
if __name__ == '__main__':
hexnum()