# Get the length of scene in driver expression

Is it possible to get the length of the current scene in a driver?

I'm trying to make properties loop, without having to edit the drivers if I change the first or last frame. I'm coming from an After Effects background, so what I want is something equivalent to AE expression's thisComp.duration

bpy.context.scene.frame_end - bpy.context.scene.frame_start