SEE IT                                                                      
                                                                                  
      Read      the   code     like   a  story                                    
                                                                                  
                                                                                  
                                                                                  
      Predict first. Then run it in the online editor.                            
                                                                                  
                                                                                  
                                                                                  
                                                                                  
        energy = int(input("Pet energy 1-5: "))                                   
        space = input("Big space? yes/no: ")                                      
        if energy >= 4 and space == "yes":                                        
            print("Try an imaginary cloud-hopper!")                               
        elif energy <= 2:                                                         
            print("Try an imaginary nap-moth!")                                   
        else:                                                                     
            print("Try an imaginary pebble-pup!")                                 
                                                                                  
                                                                                  
                                                                                  
        ONE POSSIBLE OUTPUT                                                       
                                                                                  
        Pet energy 1-5: 2                                                         
        Big space? yes/no: no                                                     
        Try an imaginary nap-moth!                                                
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
                                                                                  
        CODE DETECTIVE                                                            
                                                                                  
        Point to the part that can change. Point to the part that produces output. What do you think each
        punctuation mark is doing?                                                
                                                                                  
                                                                                  
                                                                                  
                                                                                  
      AI and Smart Machines                                               87
