Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
letters is a list of all the different letters in the string, and the for loop is just repeatedly looking a the triplets
eg. if triplets=[[1,2],[3,4]] then letters is a list containing 1,2,3,4 in any order, and t will be [1,2] and [3,4], 4 times each
I have absolutely no background in programming I had just learnt python from codecademy.com and somehow came across codewars to practise what I have learnt. I managed to reach 5kyu, so this question may sound silly but can someone explain the 2nd and 3rd line of the code, what does it exactly do?