Actor Shahid Kapoor visited the Gyan Bharti School, which he attended when he was living in the capital.