title: How to calculate the length of the string in python
body: <p>Hello i am a student and i have a few error with my code can anyone help me. <strong>The question is to enter enter a list of words and integer number and return the words if the length of the words is more than the integer.</strong>
  This is my answer. </p>
  
  <pre><code>def filter_long_words(string):
  string = raw_input("Enter a words : ")
  n = raw_input("Enter an integer : ")
  
  count = 0
  for letter in string:
      count = count + 1
  print "The total string are : ", count
  
  return count 
  
  filter_long_words(string)
  if count &gt; n:
      print string
  </code></pre>