https://github.com/cs50/style50/blob/develop/style50/style50.py#L95-L124 Goal is to generate outputs below. Note deliberate blank lines for readability. Code has just gotten rather untidy. <img width="412" alt="screen shot 2017-10-04 at 10 23 29 am" src="https://user-images.githubusercontent.com/788678/31181012-392619d4-a8ee-11e7-9709-c42f7973d055.png"> <img width="411" alt="screen shot 2017-10-04 at 10 23 18 am" src="https://user-images.githubusercontent.com/788678/31181010-39051a36-a8ee-11e7-830a-8a26dae1c727.png"> <img width="411" alt="screen shot 2017-10-04 at 10 23 03 am" src="https://user-images.githubusercontent.com/788678/31181011-390646a4-a8ee-11e7-951f-8b6f52f99209.png"> <img width="425" alt="screen shot 2017-10-04 at 10 22 49 am" src="https://user-images.githubusercontent.com/788678/31181009-39023a82-a8ee-11e7-987e-9c1b48ea32e3.png">