title: Python Returns None instead of True/False
body: <p>I am making a simple program that will find a word in grid area given a word bank, coordinates and the grid. When I use the print statement at the bottom, instead of receiving True or False, python returns "None". My code can be seen below and any improvements are appreciated. Thank you: </p>
  
  <pre><code>def grid_string_maker(word_block, x, y): # creates string from grid
      pos_word_vert = ""
      pos_word_hor = ""
      if y == 0:
          pos_word_vert += word_block[y][x]
          pos_word_vert += word_block[y+1][x]
          pos_word_vert += word_block[y+2][x]
          return pos_word_vert
      elif y == 1:
          pos_word_vert += word_block[y-1][x]
          pos_word_vert += word_block[y][x]
          pos_word_vert += word_block[y+1][x]
          return pos_word_vert
      elif y == 2:
          pos_word_vert += word_block[y-2][x]
          pos_word_vert += word_block[y-1][x]
          pos_word_vert += word_block[y][x]
          return pos_word_vert
      if x == 0:
          pos_word_hor += word_block[y][x]
          pos_word_hor += word_block[y][x+1]
          pos_word_hor += word_block[y][x+2]
          return pos_word_hor
      elif x == 1:
          pos_word_hor += word_block[y][x-1]
          pos_word_hor += word_block[y][x]
          pos_word_hor += word_block[y][x+1]
          return pos_word_hor
      elif x == 2:
          pos_word_hor += word_block[y][x-2]
          pos_word_hor += word_block[y][x-1]
          pos_word_hor += word_block[y][x]
          return pos_word_hor
  
  def find_word(word_block, x, y, validate_words):
      pos_word_vert = grid_string_maker(word_block, x, y)
      pos_word_hor = grid_string_maker(word_block, x, y)
      if pos_word_vert == validate_words: #Checks if the string vertically from up to down matches
          return True
      elif pos_word_vert != validate_words: #If top to bottom doesnt match, it reverses
          rev_pos_word_vert = pos_word_vert[::-1]
      if rev_pos_word_vert == validate_words: #Checks if the reversed bottom to top matches
          return True
      if pos_word_hor == validate_words: #Checks if the string vertically from up to down matches
          return True
      elif pos_word_hor != validate_words: #If top to bottom doesnt match, it reverses
          rev_pos_word_hor = pos_word_hor[::-1]
      if rev_pos_word_hor == validate_words: #Checks if the reversed bottom to top matches
          return True
      else:
          return False
  
  validate_words = set("THE")
  
  word_block = [
      ["A","A","A"],
      ["T","H","E"],
      ["A","A","A"]
  ]
  
  print find_word(word_block, 2, 1, validate_words)
  </code></pre>