Advertisement
Spocoman

04. Sum of Chars

Jan 18th, 2022
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. char_num = int(input())
  2. sum_chars = 0
  3.  
  4. for i in range(char_num):
  5.     sum_chars += ord(input())
  6.  
  7. print(f'The sum equals: {sum_chars}')
  8.  
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement