forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
06b4cc2eff
commit
4576474620
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user