1
0
forked from tdwojak/Python2017

Task07 completed - passed

This commit is contained in:
s45152 2017-11-27 15:21:16 +01:00
parent f4f28c0551
commit fbba0900d5

View File

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