Advertisement
osmarks

Untitled

Feb 22nd, 2021
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. def ascii_values_sum(string):
  4.     return sum(map(ord, string))
  5.  
  6. print(ascii_values_sum(input("String 1: ")) - ascii_values_sum(input("String 2: ")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement