Short If Statement

Hi,

There is the following statement in the last exercise:
p[i] = f_wb >= 0.5
It is a sort of shortened form of an if statement.
I have used the classical way with an if/else statement.
I would like to find more documentation explaining this type of shorthand.

Regards,

The comparison operator returns a logical value, 0 or 1.
That can be saved directly as the prediction.

Ok. I understand now.
Thank you @TMosh !