title: How can I store a method's return statement in a variable? (python)
body: <p>I quite new to OOP (and python as well)
  So I am building something similar to the Enigma machine.
  My problem is that: 
  I don't know how to access to the randomizer method's return statement.
  I need that in order to get a randomized list of characters.</p>
  
  <pre><code>class generators():
  
      global static_alphabet,backup_alphabet,encripting_dict,decripting_dict, mutable_alphabet
  
      static_alphabet=['a','á', 'b', 'c', 'd', 'e','é', 'f', 'g', 'h', 'i','í', 'j', 'k', 'l', 'm', 'n', 'o','ó','ö','ő', 'p', 'q', 'r', 's', 't', 'u','ú','ü','ű','v', 'w', 'x', 'y', 'z',"'",'"','@',':','_','.','-',',','!']
      backup_alphabet=['a','á', 'b', 'c', 'd', 'e','é', 'f', 'g', 'h', 'i','í', 'j', 'k', 'l', 'm', 'n', 'o','ó','ö','ő', 'p', 'q', 'r', 's', 't', 'u','ú','ü','ű', 'v', 'w', 'x', 'y', 'z',"'",'"','@',':','_','.','-',',','!']
      mutable_alphabet=[]
  
      def randomizer(self):
  
          mutable_alphabet=[]
          import random
  
          for element in static_alphabet:
  
              randletter=backup_alphabet[random.randint(0,len(backup_alphabet)-1)]
  
              while randletter==element:
  
                  randletter=backup_alphabet[random.randint(0,len(backup_alphabet)-1)]
                  if randletter!=element:
                      break
  
              mutable_alphabet.append(randletter)
              backup_alphabet.remove(randletter)
          return mutable_alphabet
  </code></pre>