Created
April 28, 2017 12:01
-
-
Save dketov/57198083c7d56982cca3324abe60210e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dic = {0: 0x7e4242424242427e, | |
1: 0x0206020202020202, | |
2: 0x3c4202040810207e, | |
3: 0x3c42020C0202423c, | |
4: 0x02060A123F020202, | |
5: 0x7E40407C0202423c, | |
6: 0x3c42407c4242423c, | |
7: 0x7e02040810101010, | |
8: 0x3c42423c4242423c, | |
9: 0x3c42423e0202423c, | |
} | |
def gen(digit): | |
for i in range(8): | |
for j in range(8): | |
yield "*" if digit & 0x8000000000000000 else " " | |
digit <<= 1 | |
yield "\n" | |
x = int(input("enter digit:")) | |
print("".join(gen(dic[x]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment