YouTip LogoYouTip

Python Exercise Example61

# Python2.x Python Exercise Instance 61 [![Image 3: Python 100 Examples](#) Python 100 Examples](#) **Title:** Print the Yang Hui triangle (requires printing 10 lines as shown below). **Program Analysis:** None. Program source code: ## Instance #!/usr/bin/python# -*- coding: UTF-8 -*-if __name__ == ' __main__ ': a = []for i in range(10): a.append([])for j in range(10): a.append(0)for i in range(10): a = 1 a = 1 for i in range(2,10): for j in range(1,i): a = a + afrom sys import stdout for i in range(10): for j in
← Python Exercise Example62Python Exercise Example60 β†’