After a few lessons, I got the hang of playing the piano.
数回のレッスンの後で、ピアノを弾くコツをつかんだ。
反復や練習によって操作や作業のコツをつかむ
to learn how to do something, especially the practical details or technique, after some practice
get the hangは、20世紀初頭の俗語表現で、hangが「コツ・やり方」を指す用法からgetで「身につける」という意味になり「コツをつかむ」となった