When it comes to the idea of molecular polarity, we have to take into account perfect shapes versus non-perfect shapes or imperfect shapes we're going to say here. First, recall that polarity of chemical bonds arises from unequal sharing of electrons between atoms based on electronegativity. Remember, elements that are more electronegative will tend to attract electrons more towards themselves.
Now we're going to say the molecular polarity itself is just the polarity that arises for an entire molecule. And we're going to say here we have nonpolar molecules and polar molecules as a result. Now when we say nonpolar molecule, we're saying this is any hydrocarbon so composed of only carbons and hydrogens and any non-hydrocarbon with the perfect shape.
Now when we say perfect shape, we break it down into perfect shape one versus perfect shape two. Now for perfect shape one, this is when our central element has the same surrounding elements and it has zero lone pairs. So your central element has no lone pairs on it. Our perfect shape two, this happens when our central element still has the same surrounding elements and it's either linear or square, planar or planar. So that's the additional caveat for perfect shape two.
We're going to say here that a polar molecule is any Lewis structure that doesn't have a perfect shape. So if you're able to identify a perfect shape automatically, it's going to be nonpolar. And if you have a molecule that doesn't fit perfect shape one or two, it's by default polar.