41 lines
1.7 KiB
Python
Executable file
41 lines
1.7 KiB
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
phrase = input(f"Phrase: ")
|
|
|
|
bitmap = [
|
|
"....................................................................",
|
|
" ************** * *** ** * ******************************",
|
|
" ********************* ** ** * * ****************************** *",
|
|
" ** ***************** ******************************",
|
|
" ************* ** * **** ** ************** *",
|
|
" ********* ******* **************** * *",
|
|
" ******** *************************** *",
|
|
" * * **** *** *************** ****** ** *",
|
|
" **** * *************** *** *** *",
|
|
" ****** ************* ** ** *",
|
|
" ******** ************* * ** ***",
|
|
" ******** ******** * *** ****",
|
|
" ********* ****** * **** ** * **",
|
|
" ********* ****** * * *** * *",
|
|
" ****** ***** ** ***** *",
|
|
" ***** **** * ********",
|
|
" ***** **** *********",
|
|
" **** ** ******* *",
|
|
" *** * *",
|
|
" ** * *",
|
|
"...................................................................."
|
|
]
|
|
|
|
idx = 0
|
|
|
|
for line in bitmap:
|
|
new_line = ""
|
|
|
|
for point in line:
|
|
if point == " ":
|
|
new_line += " "
|
|
else:
|
|
new_line += phrase[idx % len(phrase)]
|
|
idx += 1
|
|
|
|
print(new_line)
|