The Mayor of London, Boris Johnson, has attended a coding class in London as he promotes Tech City.