By induction, your first line says that writing ten thousand lines of code that work individually is easy. I accept that getting them to work together is the hard part.
Induction doesn't actually hold like that when you start applying things that require finite resources, such as time. Is it easy for me to find a dollar? Sure, I could get it any number of ways. It's slightly more difficult for me to $10,000. Now apply "induction" to amounts > $100,000,000.
Writing two lines of code that works is also easy. Anyone can do it.
Writing ten thousands lines of codes, however, is complex and hard. A good software developer can manage, or tame, this complexity.
Programming is deceivingly simple. That's what makes it so hard.