I have
x = [('a', 1), ('ab', 1), ('abc', 1), ('abcd', 1), ('b', 1), ('bc', 1), ('bcd', 1), ('c', 1), ('cd', 1), ('d', 1)]
I want to convert each of the elements in x such that:
('a',1) --> 'a1';
('ab', 1) --> 'ab1';
('abc', 1) --> 'abc1';
For your reference:
This is how I got x: x = list(Counter(words).items())