So, why does it matter whether a noun is masculine or feminine? Well, it affects the adjectives and pronouns you use to describe it. For example, if you say "le restaurant est bon", you're using the masculine adjective "bon" to describe the restaurant. But if you were talking about a feminine noun, like "la ville", you would use the feminine adjective "bonne". Make sense?
In conclusion, the gender of French nouns is a wacky and wonderful world that's full of surprises. But with a little practice and patience, you can master it and become a French language ninja. Just remember, when in doubt, ask a native speaker, or just pretend you know what you're doing. After all, as the French say, "l'ignorance est mère de la confiance" – ignorance is the mother of confidence.