Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 343 characters in body
Source Link
dingledooper
  • 23.4k
  • 1
  • 40
  • 130

Python 2, 49 bytes

n=-1
exec"print' '*(8-n/2%n),n*'0'or'*';n+=2;"*10

Try it online!

Python 3 , 47 bytes

n=-1
while n<19:print(f"{n*'0'or'*':^19}");n+=2

Try it online!

Python 2, 49 bytes

n=-1
exec"print' '*(8-n/2%n),n*'0'or'*';n+=2;"*10

Try it online!

Python 2, 49 bytes

n=-1
exec"print' '*(8-n/2%n),n*'0'or'*';n+=2;"*10

Try it online!

Python 3 , 47 bytes

n=-1
while n<19:print(f"{n*'0'or'*':^19}");n+=2

Try it online!

Source Link
dingledooper
  • 23.4k
  • 1
  • 40
  • 130

Python 2, 49 bytes

n=-1
exec"print' '*(8-n/2%n),n*'0'or'*';n+=2;"*10

Try it online!

AltStyle によって変換されたページ (->オリジナル) /