# regular octagon in red # regular nonagon in blue # condition controlled iteration # both shapes on same screen import turtle