learn by
To become knowledgeable about or experienced in something through some activity or behavior. Learning by rote has been proven by many studies to be nearly useless in the long-term retention of information. You've got to learn by doing these things for yourself.
learn by something
to learn [something] from some kind of actual experience. The best way to learn is to learn by doing. The best way to learn to sail is to learn by sailing.