Custom rotate speed per object with script

Hello, this is probably a no brainer for the coders here, I’m still learning so apologies.

I’m rotating objects in my space scene with the code below. This rotates on an axis at 1degree/frame and I’d like to make a variable that I can set from in unity which will scale this speed.

Help is appreciated, thank you!

void Update () {
transform.Rotate(Vector3.up * Time.deltaTime);
}

Simply declare a variable and then multiply the amount of rotation by that and it becomes your speed.

float speed = 5;

void Update () {
transform.Rotate(Vector3.up * speed * Time.deltaTime);	
}

Thanks so much both of you :). What Raider said makes sense after seeing it after James posted it.

TY :).