Provide a brief explanation of the difference between bearing walls and partition walls in terms of their function.
Bearing walls carry the weight of the structure, while partition walls divide spaces within the structure.