Compare commits

...

3 Commits

2 changed files with 42 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class ProgressBar:
def __str__(self):
return self.render()
count = int(input(f"total birthdays: "))
count = int(input(f"Total birthdays: "))
matches = 0
prog_bar = ProgressBar(size=MAX_SIMULATIONS, prompt="Running simulations")

41
solution-3.py Normal file
View File

@ -0,0 +1,41 @@
#!/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)