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): def char_sum(text):
sumaAsci = 0 sumaAsci = 0
text_tmp = str(text) text_tmp = text
text_tmp=text_tmp.replace('[','')
text_tmp = text_tmp.replace(']', '')
text_tmp = text_tmp.replace("'", '')
for i in text_tmp: for i in text_tmp:
sumaAsci += ord(i) sumaAsci += ord(i)
return sumaAsci return sumaAsci