1
0
forked from tdwojak/Python2017

commited tasks

This commit is contained in:
s45150 2017-11-26 22:37:25 +01:00
parent 06b4cc2eff
commit 4576474620

View File

@ -7,10 +7,8 @@ sumę kodów ASCII znaków.
"""
def char_sum(text):
sumaAsci = 0
text_tmp = str(text)
text_tmp=text_tmp.replace('[','')
text_tmp = text_tmp.replace(']', '')
text_tmp = text_tmp.replace("'", '')
text_tmp = text
for i in text_tmp:
sumaAsci += ord(i)
return sumaAsci