Preheat oven to 400 degrees, with rack in lower third. On a rimmed baking sheet, toss carrots and potatoes with oil; season with salt and pepper. Arrange in a single layer and cook until vegetables are browned in spots and tender when pierced with a knife, 40 minutes, tossing halfway through. Toss with lemon juice and dill. Serve warm or at room temperature.