title: Using if/else statements and the functions lower()/isalpha() and upper() to print all the words that starts with "h" and higher?
body: <pre><code>quote="Wheresoever you go, go with all your heart"
  word=""
  for character in quote:
      if character.lower().isalpha()==True:
          word+=character.lower()
      else:
          if word[0]&gt;="h":
              print(word.upper())
              word=""
          else:
              word = ""
  </code></pre>
  
  <p>I´m getting only the two first words printed and then:</p>
  
  <p>Traceback (most recent call last):
    File "C:/Users/dubir/PycharmProjects/Läraprogrammering/Dubirka2.py", line 153, in 
      if word[0]>="h":
  IndexError: string index out of range</p>
  
  <p>Process finished with exit code 1</p>