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.                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
        print("First")                                                            
        print("Third")                                                            
        print("Second")                                                           
                                                                                  
                                                                                  
      YOUR FIX                                                                    
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
        CHECK AFTER YOU TRY                                                       
                                                                                  
        print("First")                                                            
        print("Second")                                                           
        print("Third")                                                            
                                                                                  
                                                                                  
        Debugging pattern: observe -> guess -> change one thing -> run again.     
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
      Algorithms and Bugs                                                 23
