This is all about learning through direct experiences. However, indirect experiences also bring changes in behaviour. We generally listen, read somewhere in the books or watch in movie that snake biting leads to death. Such instances of indirect experiences make us to conclude that we should be aware of snakes.
Hence the change in behaviour of an individual through direct or indirect experiences is commonly known as learning. Here are some well known definitions of learning: