title: python function call not printing as expected
body: <p>So I have 2 functions - displayHand(hand) and calculateHandlen(hand)</p>
  
  <pre><code>def displayHand(hand):
      """
      Displays the letters currently in the hand.
  
      For example:
      &gt;&gt;&gt; displayHand({'a':1, 'x':2, 'l':3, 'e':1})
      Should print out something like:
         a x x l l l e
      The order of the letters is unimportant.
  
      hand: dictionary (string -&gt; int)
      """
      for letter in hand.keys():
          for j in range(hand[letter]):
               print(letter,end=" ")       
      print() 
  
  def calculateHandlen(hand):
      """ 
      Returns the length (number of letters) in the current hand.
  
      hand: dictionary (string-&gt; int)
      returns: integer
      """
      handLen = 0
      for i in hand:
          handLen = handLen + hand.get(i,0)
  
      return handLen
  </code></pre>
  
  <p>There's a loop in another function that is dependent on the above functions - </p>
  
  <pre><code>def playHand(hand, wordList, n): 
  """
     hand = dictionary 
     wordList = list of valid words
     n = an integer passed while function call  
  """
      totalscore = 0
      while(calculateHandlen(hand)&gt;0):
          print("Current Hand: " +str(displayHand(hand)))
  
          newWord = input('Enter word, or a "." to indicate that you are finished: ')
  </code></pre>
  
  <p>Function call for playHand() is as follows:</p>
  
  <pre><code>wordList = loadWords() #loadWords could be a list of words
  playHand({'n':1, 'e':1, 't':1, 'a':1, 'r':1, 'i':2}, wordList, 7)
  </code></pre>
  
  <p>I'm expecting the output to be:</p>
  
  <pre><code>Current Hand: n e t a r i i 
  Enter word, or a "." to indicate that you are finished:
  </code></pre>
  
  <p>However, it displays the following: </p>
  
  <pre><code>n e t a r i i   
  Current Hand: None  
  Enter word, or a "." to indicate that you are finished:
  </code></pre>
  
  <p>Don't know where I'm going wrong.</p>
  
  <p>Note: I'm not allowed to make any changes to the first 2 functions.</p>