mirror of
https://github.com/flancian/garden.git
synced 2026-08-10 16:36:19 +00:00
autopushed
This commit is contained in:
+1
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user