commit before going to bed

This commit is contained in:
2012-10-16 22:13:06 +02:00
parent aa788db715
commit 57353d2d26
2 changed files with 3 additions and 4 deletions

View File

@@ -19,3 +19,4 @@ d_1 d_10 d_100 d_1000 d_10000 d_100000 d_1000000
if __name__ == '__main__': if __name__ == '__main__':
print 1 print 1
#print "Answer : %d " % (last_ten()) #print "Answer : %d " % (last_ten())

View File

@@ -19,9 +19,7 @@ def sum_numbers(val):
""" """
Given an value, returns the sum of all its numbers Given an value, returns the sum of all its numbers
""" """
temp = str(val) return sum(map(int,str(val)))
res = sum([int(i) for i in temp])
return res
def sum_pow(max_a, max_b=None): def sum_pow(max_a, max_b=None):