# -*- coding: utf-8 -*- """ @authors: katkaranikola stkarlos """ l = [] s = 0 for i in range(1,11): l.append(i**2) s = s + l[i-1] print l, s, sum(l) k = [] for i in range(0,len(l)): if l[i] % 2 == 0: k.append(l[i]) else: k.append(l[i] * '!') print k
lesson7_17_ear_3
Posted in Uncategorized