What is purpose of writing the model in 2 lines instead of 1?

in wk3 (and possibly earlier) the model is written in 2 lines:

Z = wX + b
Yhat = Z

what really is the purpose of splitting it in two lines instead of writing it in a single line:

Yhat = wX + b?

thanks

In that situation, there’s no advantage.

But for more complex operations, it’s easier to debug if you avoid writing compound statements.

right - in the case of classification where

Z = wX + b
Yhat = sigmoid(Z)

Thanks