else if fish[' '!top_edge fish[' '- move the fish up else fish['goingdown'true turn the fish around fish can randomly change their vertical direction fish['timetovdirchange'- if fish['timetovdirchange'= fish['timetovdirchange'random randint( turn the fish around fish['goingdown'not fish['goingdown' generate bubbles from bubblers for bubbler in bubblers there is in chance of making bubble if random randint( = bubbles append({' 'bubbler' 'height } move the bubbles for bubble in bubbles diceroll random randint( if (diceroll = and (bubble[' '!left_edge) bubble[' '- bubble goes left elif (diceroll = and (bubble[' '!right_edge) bubble[' '+ bubble goes right bubble[' '- the bubble always goes up iterate over bubbles in reverse because ' deleting from bubbles while iterating over it for in range(len(bubbles - - ) if bubbles[ ][' '=top_edgedelete bubbles that reach the top del bubbles[ simulate the kelp waving for one step for kelp in kelps for ikelpsegment in enumerate(kelp['segments']) in chance to change waving if random randint( = if kelpsegment ='(' kelp['segments'][ ') elif kelpsegment =')' kelp['segments'][ '( def drawaquarium() """draw the aquarium on the screen "" global fishesbubblersbubbleskelpstep draw quit message bext fg('white' bext goto( print('fish tankby al sweigart ctrl- to quit 'end='' project #