bucketthe next five strings the five-liter bucketand the final three strings the three-liter bucket """water bucket puzzleby al sweigart al@inventwithpython com water pouring puzzle more info view this code at tagslargegamemathpuzzle"" import sys print('water bucket puzzleby al sweigart al@inventwithpython com' goal the exact amount of water to have in bucket to win steps keep track of how many steps the player made to solve this the amount of water in each bucket waterinbucket {' ' ' ' ' ' while truemain game loop display the current state of the buckets print( print('try to get str(goal' of water into one of these' print('buckets:' waterdisplay [contains strings for water or empty space get the strings for the bucket for in range( ) if waterinbucket[' ' waterdisplay append('add empty space else waterdisplay append('wwwwww'add water get the strings for the bucket for in range( ) if waterinbucket[' ' waterdisplay append('add empty space else waterdisplay append('wwwwww'add water get the strings for the bucket for in range( ) if waterinbucket[' ' waterdisplay append('add empty space else waterdisplay append('wwwwww'add water display the buckets with the amount of water in each one print('' |{ } |{ } project #