title: Create a dictionary of all letter transitions from a previous dictionary of words?
body: <p>Me and a friend are working on a project and we have been able to find all the first letters of a dictionary with this code:</p>
  
  <pre><code>def findFirstLetter(aDict):
      for i in aDict:
          aDict[i]=i[0:2]
      return(aDict)
  </code></pre>
  
  <p>We are trying to make another function like this but instead finding the rest of transitions in each word and putting those into a new dictionary.</p>
  
  <p>For example:</p>
  
  <p>Taking a dictionary with the word <code>{_steam_}</code>
  and giving us <code>{'st':'','te':'','ea':'','am':'','m_':''}</code></p>
  
  <p>Edit: Thanks for the quick responses, first time at the website so going to have to get use to how things run around here.  Going to start trying the different ways of doing this you guys recommended.  The project is based on making a Markov Model if anyone was curious. </p>