running out of time!

workspace
km0 2 years ago
parent 78bd042780
commit 0e23a17f44

@ -122,14 +122,17 @@ class Soup(Bureau):
repeated_pattern = (self.pattern * (length // len(self.pattern)))
# + self.pattern[:(length % len(self.pattern))]
try:
for choice in repeated_pattern:
if choice == 'A':
result += list_a[text_a_cursor]
text_a_cursor += 1
if choice == 'B':
result += list_b[text_b_cursor]
text_b_cursor += 1
except Exception:
pass
for choice in repeated_pattern:
if choice == 'A':
result += list_a[text_a_cursor]
text_a_cursor += 1
if choice == 'B':
result += list_b[text_b_cursor]
text_b_cursor += 1
self.print_small(result)

Loading…
Cancel
Save