# -*- coding: utf-8 -*- """ xrisi strings gia ipologismo arithmitikon parastaseon @authors: geokoutsiouri katkaranikola stkarlos """ #na ipologistei to athroisma: S = 9 + 99 + 999 + ... + 9999999999 S = 0 for i in range(1,11): #10 sinolika orous exoume x = '9' * i S = S + int(x) print S print 'teliki timi S = %d' %S