__str__ with Formatted Numbers
Remember format specifiers from Strings II? Use
:.2f inside __str__ to format a product price.Premium
Python
Setting up Python environment... Output
:.2f inside __str__ to format a product price.Setting up Python environment...