furas

Python - TRUE LOVE

Jul 5th, 2018
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from collections import Counter
  2.  
  3. person1 = input("Input name of Person 1: ")
  4. person2 = input("Input name of Person 2: ")
  5.  
  6. a = Counter(person1)
  7. b = Counter(person2)
  8.  
  9. the_list = [ a[char] + b[char] for char in 'TRUELOVE' ]
  10. #print(the_list)
  11.  
  12. for _ in range(6):
  13.     pairs = list(zip(the_list, the_list[1:]))
  14.     print(pairs)
  15.  
  16.     the_list = [sum(x) % 10 for x in pairs]
  17.     print(the_list)
  18.  
  19. print(''.join(str(x) for x in the_list))
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×