You could do that, but is it not optimal. You will waste a lot of power in the resistor, particularly for the lamp.
But the calculations go as follows:
R = (Vb - Vl) / I
Where R is the resistor, Vb is the battery voltage, Vl is the lamp (or LED) voltage and I is the lamp or LED...