Advertisement
Farz0l1x

Untitled

Apr 17th, 2024
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. file = open('24_8615.txt')
  2. s = file.readline()
  3. for i in 'ABCDEF':
  4.     for j in 'ABCDEF':
  5.         while i + j in s:
  6.             s = s.replace(i + j, i + ' ' + j)
  7. s = s.split()
  8. print(max(s, key = len))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement