>>> from initials import initials >>> d = initials('Genius is one percent inspiration and ninety-nine percent perspiration') >>> if d != {'g': ['genius'], 'i': ['inspiration', 'is'], 'o': ['one'], ... 'p': ['percent', 'perspiration'], 'a': ['and'], 'n': ['ninety-nine']}: ... print(d) >>> d = initials('Three can keep a secret if two of them are dead') >>> if d != {'t': ['them', 'three', 'two'], 'c': ['can'], 'k': ['keep'], ... 'a': ['a', 'are'], 's': ['secret'], 'i': ['if'], 'o': ['of'], 'd': ['dead']}: ... print(d) >>> text = 'You can fool all of the people some of the time and some of the people' >>> text = text + ' all of the time but you can not fool all of the people all of the time' >>> d = initials(text) >>> if d != {'y': ['you'], 'c': ['can'], 'f': ['fool'], 'a': ['all', 'and'], ... 'o': ['of'], 't': ['the', 'time'], 'p': ['people'], 's': ['some'], ... 'b': ['but'], 'n': ['not']}: ... print(d)