Residents flocked to local city swimming pools for a chance to break the world's record for the largest swimming lesson.