title: How to access objects created using one class from a different class in Python
body: <p>I have a problem related to accessing objects created using one class from an another class</p>
  
  <p>In order simplify the problem 
  lets say ,</p>
  
  <p>I Have a Python Files called Box1.py , cart1.py and soldApples.py</p>
  
  <pre><code> class Box1:
      def__init__(self):
        self.appleList = []
  
      def set_Apples(self,number1):
        self.appleList.append(number1):
  
      def get_Apples(self):
          return appleList
  </code></pre>
  
  <p>And the Main Class Called Cart1.py</p>
  
  <pre><code>  from Box1 import Box1
    NewSet = Box1()
  
    class cart1:
       def calculation()
          numberofApples = 5
          NewSet.set_Apples(numberofApples)
  
        return 0
  </code></pre>
  
  <p>Now I want to Access Object <code>"NewSet"</code> using another class</p>
  
  <p>let's say soldApples.py</p>
  
  <p>so How do I access to <code>"NewSet"</code> Object Created by Cart1.py using soldApples.py?</p>
  
  <p>Thank you very much in advance guys.</p>