1
0
Fork 0

commited tasks

This commit is contained in:
s45150 2017-11-26 22:37:25 +01:00
parent 06b4cc2eff
commit 4576474620
1 changed files with 2 additions and 4 deletions

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