title: Multiple instances of a class being overwritten at the same time? (Python)
body: <p>Here's a very simple code I made to demonstrate the problem I'm encountering.  What's happening here is that I'm creating two different instances of the same class but changing an attribute of one will change the corresponding attribute of the other instance.  I'm not sure why this is.  Is this normal in Python or am I encountering something being totally messed up?</p>
  
  <pre><code>class exampleClass(object):
  
      attribute1=0
      attribute2="string"
  
  x=exampleClass
  x.attribute1=20
  x.attribute2="Foo"
  
  y=exampleClass
  y.attribute1=60
  y.attribute2="Bar"
  
  print("X attributes: \n")
  print(x.attribute1)
  print(x.attribute2)
  
  print("Y attributes: \n")
  print(y.attribute1)
  print(y.attribute2)
  </code></pre>
  
  <p>Here is what the program looks like coming out of my console:</p>
  
  <pre><code>&gt;&gt;&gt; 
  X attributes: 
  
  60
  Bar
  Y attributes: 
  
  60
  Bar
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>I think it should be saying:</p>
  
  <pre><code>X attributes:
  
  20
  Foo
  Y attributes:
  
  60
  Bar
  </code></pre>
  
  <p>What am I doing wrong?</p>