Novice question on syntax in sample code

Thanks you both for your explanations.
Now the syntax makes sense me.
Before your help, I only had a vague idea what was going.