From d17a0deeed1ca353643af6cf67ac8403d7cf4aef Mon Sep 17 00:00:00 2001 From: s45164 Date: Fri, 1 Dec 2017 17:18:42 +0000 Subject: [PATCH] Update 'labs02/task07.py' --- labs02/task07.py | 1 + 1 file changed, 1 insertion(+) diff --git a/labs02/task07.py b/labs02/task07.py index 80cbd37..e986849 100644 --- a/labs02/task07.py +++ b/labs02/task07.py @@ -6,6 +6,7 @@ Napisz funkcję char_sum, która dla zadanego łańcucha zwraca sumę kodów ASCII znaków. """ def char_sum(text): + return sum(ord(ch) for ch in text) pass def tests(f):