forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
d64e3c0545
commit
32d82a2556
@ -7,8 +7,12 @@ sumę kodów ASCII znaków.
|
|||||||
"""
|
"""
|
||||||
def char_sum(text):
|
def char_sum(text):
|
||||||
sumaAsci = 0
|
sumaAsci = 0
|
||||||
for i in text
|
text_tmp = str(text)
|
||||||
sumaAsci += sumaAsci(i)
|
text_tmp=text_tmp.replace('[','')
|
||||||
|
text_tmp = text_tmp.replace(']', '')
|
||||||
|
text_tmp = text_tmp.replace("'", '')
|
||||||
|
for i in text_tmp:
|
||||||
|
sumaAsci += ord(i)
|
||||||
return sumaAsci
|
return sumaAsci
|
||||||
|
|
||||||
def tests(f):
|
def tests(f):
|
||||||
|
Loading…
Reference in New Issue
Block a user