Apps use different approaches in teaching the basics of coding; some offer interactive lessons, while others take the form of a game. According to this NY Times article, KNOWING how to write computer code has probably never been more valuable. The barriers to learning code are low and keep getting lower — you just need a little patience and a dose of ambition. Some smartphone apps do a nice job of teaching the basics.
Check out this video here for more.