Advertisement
STANAANDREY

automata tester

Dec 24th, 2022 (edited)
988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import itertools
  2.  
  3. letters = ['a', 'b', 'c']
  4. combs = list(itertools.product(letters, repeat=4))
  5.  
  6. with open("text.txt", "w") as f:
  7.     for comb in combs:
  8.         f.write(''.join(comb) + 'bac')
  9.         f.write('\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement