This is a common source of confusion for beginners (myself included). You can find related threads about it. One nice answer is this one: