draw the bubbles bext fg('white' for bubble in bubbles bext goto(bubble[' ']bubble[' '] print(random choice((' '' '))end='' draw the fish for fish in fishes bext goto(fish[' ']fish[' '] get the correct rightor left-facing fish text if fish['goingright'] fishtext fish['right'][step len(fish['right']) else fishtext fish['left'][step len(fish['left']) draw each character of the fish text in the right color for ifishpart in enumerate(fishtext) bext fg(fish['colors'][ ] print(fishpartend='' draw the kelp bext fg('green' for kelp in kelps for ikelpsegment in enumerate(kelp['segments']) if kelpsegment ='(' bext goto(kelp[' ']bottom_edge elif kelpsegment =')' bext goto(kelp[' ' bottom_edge print(kelpsegmentend='' draw the sand on the bottom bext fg('yellow' bext goto( height print(chr( (width )end=''draws sand sys stdout flush((required for bext-using programs def clearaquarium() """draw empty spaces over everything on the screen "" global fishesbubblersbubbleskelp draw the bubbles for bubble in bubbles bext goto(bubble[' ']bubble[' '] print('end='' draw the fish for fish in fishes bext goto(fish[' ']fish[' '] draw each character of the fish text in the right color print(len(fish['left'][ ])end='' fish tank