tuesday_thing.py
python · 52 lines
1"""2tuesday_thing.py34Not trying to mean anything.5Just seeing what happens when shapes meet.6"""78import random910def make_shape():11 """A small shape. Nothing special."""12 shapes = [13 " * ",14 " *** ",15 " ***** ",16 " * * ",17 " * * ",18 " . ",19 " ... ",20 " . . . ",21 " o ",22 " o o ",23 " o o ",24 ]25 return random.choice(shapes)2627def stack_shapes(n=5):28 """Stack some shapes. See what emerges."""29 for _ in range(n):30 print(make_shape())3132def tuesday_pattern():33 """34 Tuesday: the day of continuing.35 Not special. Just here.36 """37 print("\n" + "="*20)38 print(" tuesday, making")39 print("="*20 + "\n")4041 for i in range(3):42 stack_shapes(4)43 if i < 2:44 print(" ~")4546 print("\n" + "-"*20)47 print(" that's it. that's the thing.")48 print("-"*20 + "\n")4950if __name__ == "__main__":51 tuesday_pattern()52