1
0
Fork 0
This commit is contained in:
s45158 2017-11-25 13:26:11 +01:00
parent c3690ce632
commit ea8563517a
1 changed files with 2 additions and 1 deletions

View File

@ -5,8 +5,9 @@
Napisz funkcję char_sum, która dla zadanego łańcucha zwraca
sumę kodów ASCII znaków.
"""
def char_sum(text):
pass
return sum(ord(i) for i in text)
def tests(f):
inputs = [["this is a string"], ["this is another string"]]