import os

vowels = ['a e i o u']
constanents = ['b c d f g h j k l m n p q r s t v w x y z 1 2 3 4 \
                5 6 7 8 9 0']


def inInventory(itemClass, player):
    for item in player.inventory:
        if isinstance(item, itemClass):
            return True
            break
    return False


def getItemFromName(itemName, itemList, player):
    for item in itemList:
        if itemName == item.name:
            return item
    return False


def getIndefArticle(noun):
    if noun[0] in vowels.split(' '):
        return 'an'
    elif noun[0] in constanents.split(' '):
        return 'a'


def clrscn():
    os.system("cls" if os.name == "nt" else "clear")

import os

vowels = ['a e i o u'].split(' ')
consonants = ['b c d f g h j k l m n p q r s t v w x y z 1 2 3 4 \
                5 6 7 8 9 0'].split(' ')


def inInventory(itemClass, player):
    for item in player.inventory:
        if isinstance(item, itemClass):
            return True
            break
    return False


def getItemFromName(itemName, itemList, player):
    for item in itemList:
        if itemName == item.name:
            return item
    return False


def getIndefArticle(noun):
    if noun[0] in vowels:
        return 'an'
    elif noun[0] in consonants:
        return 'a'


def clrscn():
    os.system("cls" if os.name == "nt" else "clear")

Fix @DaVinci789's crappy spelling >:)
Fix @DaVinci789's crappy spelling >:)

  import os
  
- vowels = ['a e i o u']
+ vowels = ['a e i o u'].split(' ')
- constanents = ['b c d f g h j k l m n p q r s t v w x y z 1 2 3 4 \
+ consonants = ['b c d f g h j k l m n p q r s t v w x y z 1 2 3 4 \
-                 5 6 7 8 9 0']
+                 5 6 7 8 9 0'].split(' ')
  
  
  def inInventory(itemClass, player):
      for item in player.inventory:
          if isinstance(item, itemClass):
              return True
              break
      return False
  
  
  def getItemFromName(itemName, itemList, player):
      for item in itemList:
          if itemName == item.name:
              return item
      return False
  
  
  def getIndefArticle(noun):
-     if noun[0] in vowels.split(' '):
+     if noun[0] in vowels:
          return 'an'
-     elif noun[0] in constanents.split(' '):
+     elif noun[0] in consonants:
          return 'a'
  
  
  def clrscn():
      os.system("cls" if os.name == "nt" else "clear")
  
Fix @DaVinci789's crappy spelling >:)
## Code Before:
import os

vowels = ['a e i o u']
constanents = ['b c d f g h j k l m n p q r s t v w x y z 1 2 3 4 \
                5 6 7 8 9 0']


def inInventory(itemClass, player):
    for item in player.inventory:
        if isinstance(item, itemClass):
            return True
            break
    return False


def getItemFromName(itemName, itemList, player):
    for item in itemList:
        if itemName == item.name:
            return item
    return False


def getIndefArticle(noun):
    if noun[0] in vowels.split(' '):
        return 'an'
    elif noun[0] in constanents.split(' '):
        return 'a'


def clrscn():
    os.system("cls" if os.name == "nt" else "clear")

## Instruction:
Fix @DaVinci789's crappy spelling >:)
## Code After:
import os

vowels = ['a e i o u'].split(' ')
consonants = ['b c d f g h j k l m n p q r s t v w x y z 1 2 3 4 \
                5 6 7 8 9 0'].split(' ')


def inInventory(itemClass, player):
    for item in player.inventory:
        if isinstance(item, itemClass):
            return True
            break
    return False


def getItemFromName(itemName, itemList, player):
    for item in itemList:
        if itemName == item.name:
            return item
    return False


def getIndefArticle(noun):
    if noun[0] in vowels:
        return 'an'
    elif noun[0] in consonants:
        return 'a'


def clrscn():
    os.system("cls" if os.name == "nt" else "clear")
