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):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user