Only index into the phrase if it not a space

This commit is contained in:
Nick Chambers 2022-10-12 21:39:58 -05:00
parent db75a84f35
commit c01a5b645b
1 changed files with 4 additions and 1 deletions

View File

@ -26,13 +26,16 @@ bitmap = [
"...................................................................."
]
idx = 0
for line in bitmap:
new_line = ""
for idx, point in enumerate(line):
for point in line:
if point == " ":
new_line += " "
else:
new_line += phrase[idx % len(phrase)]
idx += 1
print(new_line)