title: Returning an input value from a function in a class - Python
body: <p>I have been trying to return a value from an input in one of my programs and cannot seem to do so when using an input, could anybody help me out? this isn't the code of my program but it's a relevant example to the issue i'm having. Thanks. </p>
  
  <pre><code>class one(object):
  
      two = ("")
  
      def test(self):
  
          two = input("Please enter a number. ")
  
          return self.two
  
          print (two)
  
  cOne = one()
  test1 = cOne.test()
  </code></pre>