Breaking News Emails

Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.
 / Updated 
By Associated Press

Apple CEO Tim Cook says teaching coding to kids is just as important as teaching any other foreign language. And the younger kids start learning it, the better.

Cook spoke to a group of New York third graders who visited a Manhattan Apple store for a coding class Wednesday. He says schools don't put enough emphasis on computer science education and that he hopes that one day coding will become a required class for all kids.

The kids at the event played with a Star Wars-themed iPad game, using basic drag-and-drop commands to program their droid to do things like pick up scrap metal or evade Stormtroopers.

The "Hour of Code" workshop was one of many held by Apple this week as part of Computer Science Education Week.

Read More: The Education Start-Up Backed by Mark Zuckerberg