The longer the wire, the bigger the resistance. This makes sense because every component has a certain resistance, so adding a longer wire in series with the other components increased the resistance
Why was keeping the wire a constant temperature important?
It is important because, if you had changed the length of the wire and the temperature together, you could not be sure which of these two changes caused a change in resistance. So the test would not have been fair