def tri(t): #t = input('please input a num') L = [] n = 0 while n < t: if n >= 2: for j in range(n): if j >= 1: L[j] = M[j] + M[j-1] n += 1 L.append(1) M = [] for x in L: M.append(x) print(L)
Sign in to make a reply
執謎卜誤