Hello. I'm not sure if the following sentence is idiomatic: 1. When I was a child I learned how to swim but I didn't learn it. Maybe this one is better: 2. When I was a child I learned how to swim but I didn't master it. I want to say that I was not able to swim. In my my mother tongue I can use the perfective form of "learn" to express my failure to learn swimming.