Understanding the Exercise Class in QuantLib Python: From Concept to Practice

How option exercise styles — European, American, and Bermudan — are modeled in QuantLib, with a practical VanillaOption pricing example.