A lot of diversity in the answers already posted, but I feel I have to add a couple of thoughts:
Coding (if you mean simply typing a little program that fits in one file) is very easy and anybody can do it once you know the syntax.
A simple loop, printing a few numbers on the screen and so on, very easy.
Then, what is hard:
Well, bigger problems need bigger solutions, and learning how to decompose a problem to build little pieces of solutions that will then all fit nicely together is the hard part. Only experience will make you better. Reading books or watching seminars online will help but you have to finish a project on your own many times over to start being able to solve bigger and bigger problems.
Last but not least, coding (I would say developing) is never easy in reality because:
Well, coding is the best job in the world regardless because we learn everyday, but starting that job nowadays is a real challenge compared to 10 years ago.