text: ''' card class '''
  
  # pylint: disable=E1601
  
  class Card(object):
      ''' card class '''
  
      def __init__(self, card):
          ''' card initialization; Card('8s'), Card('QC') '''
          values = [0,1,2,3] #0 is for a low: 2 3 4, 1 for a medium 4 5 6 7, 2 for a high 8 9 10, 3 for a suit J Q K A
  
          self.__figure = card[0]
          self.__color = card[1].upper()
          self.__card = self.__figure + self.__color
  
          if self.__figure == 'A':
              self.__value = 14
              self.__21_value = 11
  
          elif self.__figure == 'K':
              self.__value = 13
              self.__21_value = 10
  
          elif self.__figure == 'Q':
              self.__value = 12
              self.__21_value = 10
  
          elif self.__figure == 'J':
              self.__value = 11
              self.__21_value = 10
  
          elif self.__figure == 'T':
              self.__value = 10
              self.__21_value = 10
  
          else:
              self.__value = int(self.__figure)
              self.__21_value = int(self.__figure)
  
      def show_card(self):
          ''' show card '''
          if self.__card == "0X":
              print("This card does not exist, check your index!")
              pass
          else:
              return self.__card
  
      def figure(self):
          ''' show figure '''
  
          return self.__figure
  
      def color(self):
          ''' show color '''
  
          return self.__color
  
      def value(self):
          ''' show value '''
  
          return self.__value
  
      def blackjack_value(self):
          ''' show value in the game of blackjack '''
  
          return self.__21_value
  