title: why am i getting error -Single '}' encountered in format string
body: <p>I am writing some code to see print out a list of words that I can make with the string of letters 'myLetters', but for some reason my formatting wont work. It is supposed to come out as a list of words with as many spaces between it and the value as the length of myLetters + 4  </p>
  
  <pre><code>def scrabbleWords(myLetters):
          letterPoints = {'a':1,'b':3,'c':3,'d':2, 'e':1,'f':4,'g':2,'h':4,\
      'i':1,'j':8,'k':5,'l':1,'m':3,'n':1,'o':1,'p':3,'q':10,'r':1,'s':1,\
      't':1,'u':1,'v':4,'w':4,'x':8,'y':4}
          wordList = createWordList('wordlist.txt')
          myWords = []
          for myWord in wordList:
              x = canWeMakeIt(myWord,myLetters)
              if x == True:
                  myWords.append(myWord)
  
  
          pointWordList = []
          for myWord in myWords:
              t = getWordPoints(myWord,letterPoints)
              pointWordList.append((t,myWord))
          pointWordList.sort(reverse=True)
  
  
          lenx = str(len(myLetters)+4)
          for pointValue, myWord in pointWordList:
              x = '{:'+lenx+'}{}'.format(myWord,pointValue)
              print(x)
  </code></pre>