Learning Scientific Programming with Python (2nd edition)

P4.6.2: Saving a polymer image

Question P4.6.2

Add a method, save_svg to the Polymer class of Example E4.19 to save an image of its polymer as an SVG file. Refer to Exercise P4.4.3 for a template of an SVG file.