1
0
forked from tdwojak/Python2017

commited tasks

This commit is contained in:
s45150 2017-11-25 14:56:10 +01:00
parent 712d7f43c1
commit 4480bb891e
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -7,7 +7,7 @@ przez 3 lub 5 mniejszych niż n.
"""
def sum_div35(n):
pass
def tests(f):
inputs = [[10], [100], [3845]]