title: Python : comparing word by word : first and last letter (alphabetical order)
body: <p>I want to compare n words. The first and last letter of the word has to be the same and the next word has to start with end and end with the next letter in the alphabet. If all words are correct you print 'ok'.                             </p>
  
  <p>For example: 3 liverpool MaM nelson                             </p>
  
  <p>'ok'</p>
  
  <pre><code>n = int(input("Input a number: "))
  
  woorden = []
  
  for i in range(n):
      woord = input("Enter a string: ")
      woorden.append(woord)
      if woord[:1].startswith('"') == woord[:-1].endswith('"'): 
      if ord(woord[:-1]) == ord(woord[:1]):
          print('ok')
      else:
          print(f'{woord}')
  </code></pre>