Trial and error learning involves trying different actions until finding one that achieves a desired outcome. Thorndike demonstrated this through his puzzle box experiment with cats. The cats initially explored the box randomly but eventually learned to press a lever to escape and get food. One-trial learning can result from a single negative experience, like Garcia and Koelling's rats that avoided a sweet liquid after it once made them ill. Both types of learning allow individuals to adapt to their environment.