https://git.wmi.amu.edu.pl/tdwojak/Python2017/src/master/labs03 #1

Open
s45158 wants to merge 17 commits from s45158/Python2017:master into master
Showing only changes of commit ea8563517a - Show all commits

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"]]