BUG HUNT                                                                    
                                                                                  
      Pip's    program         has    a  bug!                                     
                                                                                  
                                                                                  
                                                                                  
      Run the buggy version. Read the error message or strange output. Circle     
                                                                                  
      the smallest part you think should change.                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
        import random                                                             
        roll = random.randint(1)                                                  
        print(roll)                                                               
                                                                                  
                                                                                  
      YOUR FIX                                                                    
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
        CHECK AFTER YOU TRY                                                       
                                                                                  
        import random                                                             
        roll = random.randint(1, 6)                                               
        print(roll)                                                               
                                                                                  
                                                                                  
        Debugging pattern: observe -> guess -> change one thing -> run again.     
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
      Randomness and Mini-Games                                           59
