Question: how many years does it take to learn programming?
Answer: Learning what to do with them, which is what you'd need to hold a job, is going to take at least a few months of serious practice and probably a few years. You'll learn more than one programming language, as explained by others. And it takes ten years to learn programming (or many other things).