Skip to content

Instantly share code, notes, and snippets.

@andreis
Created March 25, 2024 15:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreis/9c5e3ae225cb20e5d382bbd900bf79fa to your computer and use it in GitHub Desktop.
Save andreis/9c5e3ae225cb20e5d382bbd900bf79fa to your computer and use it in GitHub Desktop.
print("\n".join("".join("*" if i in (0, 9, j, 9-j) else " " for j in range(10)) for i in range(10)))
print("====")
print("".join(map(lambda i: ("*" if i//10 in (0, 9, i%10, 9-(i%10)) else " ") + ("\n" if (i+1) % 10 == 0 else ""), range(100))))
print("====")
print("".join(map(lambda i: ([""]*9+["\n"])[(i>>1)%10] if i&1 else "*" if (i>>1)//10 in (0, 9, (i>>1)%10, 9-((i>>1)%10)) else " ", range(200))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment