Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from collections import Counter
- person1 = input("Input name of Person 1: ")
- person2 = input("Input name of Person 2: ")
- a = Counter(person1)
- b = Counter(person2)
- the_list = [ a[char] + b[char] for char in 'TRUELOVE' ]
- #print(the_list)
- for _ in range(6):
- pairs = list(zip(the_list, the_list[1:]))
- print(pairs)
- the_list = [sum(x) % 10 for x in pairs]
- print(the_list)
- print(''.join(str(x) for x in the_list))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement