I need to create a list of triplets containing only uppercase English letters:
["AAA","AAB","AAC", ..., 'ZZZ']
What is the fastest way to do this in python?
>>> from itertools import product >>> from string import ascii_uppercase >>> triplets = map(''.join, product(ascii_uppercase, repeat=3)) >>> triplets[4] 'AAE'
Source: https://habr.com/ru/post/1485384/More articles:MVC drop-down list for <> - c #Javascript array returns length as 0 always, even it has elements - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1485381/maven-setup-another-repository-for-certain-dependency&usg=ALkJrhhHHkqDBj5NqyLsXFFBVDciZTVDgQWhat do empty curly braces mean in javascript? - javascriptHow to iterate over a string after store.load () - extjsSeveral events in the training - rJavascript: Are objects returned by reference, or is a new instance instantiated? - javascriptSmooth UITableView animation when deleting a partition - ioswhy is typedef needed in a C ++ enum definition? - c ++How to simulate HTML preview on different email clients - emailAll Articles