How is the flex property is different from the flex value used for the display property?

Hello, I am just learning CSS and I am at the flexbox part.
At chapter 9 there is a note: > The flex property is different from the flex value used for the display property.

I would like to know how and why does flex property differ from flex value?