title: Check multiple variables excluding same ones?
body: <p>So I have a code that compares variables, for example A = 01, B = 101, I = 1011. I have to check if for example B starts with the same code as I. B = 101, I = <strong>101</strong>1. Problem arises when two same variables are being compared, for example A = 01 and A = <strong>01</strong>. I don't need to compare variables that have the same name. What do I do in this situation?</p>
  <pre><code>A, B, I, L, O, S, C = '01', '101', '1011', '01', '1110', '1111', '0001'
  
  def error_fano():
      flag = 0
      for a in ['A', 'B', 'I', 'L', 'O', 'S', 'C']:
          for b in ['A', 'B', 'I', 'L', 'O', 'S', 'C']:
              if a.startswith(b) or b.startswith(a):
                  flag = 1
      return flag
  
  if error_fano() == 0:
      ABSCISSA = f'{A} {B} {S} {C} {I} {S} {S} {A}'
      length = len(ABSCISSA) - 7
      print(length, ABSCISSA)
  </code></pre>
  <p>I need so all letters follow the fano rule, so B doesn't start with A. But if A = A it is okay</p>