title: How can I print a list of the names of the periodic elements from this class code
body: <p>I want to print a list(for python) of a one attribute type like the names of the periodic elements</p>
  <p>For example how can I print a text like this:</p>
  <p><code>[&quot;Hydrogen&quot;, &quot;Helium&quot;, &quot;Lithium&quot;, &quot;Beryllium&quot;, &quot;Boron&quot;, &quot;Carbon&quot;, ...]</code></p>
  <hr />
  <pre><code>class Elements:
      def __init__(self, name, number, symbol, group, family):
          self.name = name
          self.number = number
          self.symbol = symbol
          self.group = group
          self.family = family
  
  
  hydrogen = Elements(&quot;Hydrogen&quot;, 1, &quot;H&quot;, &quot;Nonmetal&quot;, &quot;Alkali Metal&quot;)
  helium = Elements(&quot;Helium&quot;, 2, &quot;He&quot;, &quot;Nonmetal&quot;, &quot;Noble Gas&quot;)
  lithium = Elements(&quot;Lithium&quot;, 3, &quot;Li&quot;, &quot;Metal&quot;, &quot;Alkali Metal&quot;)
  beryllium = Elements(&quot;Beryllium&quot;, 4, &quot;Be&quot;, &quot;Metal&quot;, &quot;Alkali Earth Metal&quot;)
  boron = Elements(&quot;Boron&quot;, 5, &quot;B&quot;, &quot;Metalloid&quot;, &quot;Boron&quot;)
  carbon = Elements(&quot;Carbon&quot;, 6, &quot;C&quot;, &quot;Nonmetal&quot;, &quot;Carbon&quot;)
  nitrogen = Elements(&quot;Nitrogen&quot;, 7, &quot;N&quot;, &quot;Nonmetal&quot;, &quot;Nitrogen&quot;)
  oxygen = Elements(&quot;Oxygen&quot;, 8, &quot;O&quot;, &quot;Nonmetal&quot;, &quot;Oxygen&quot;)
  fluorine = Elements(&quot;Fluorine&quot;, 9, &quot;F&quot;, &quot;Nonmetal&quot;, &quot;Halogen&quot;)
  neon = Elements(&quot;Neon&quot;, 10, &quot;Ne&quot;, &quot;Nonmetal&quot;, &quot;Noble Gas&quot;)
  sodium = Elements(&quot;Sodium&quot;, 11, &quot;Na&quot;, &quot;Metal&quot;, &quot;Alkali Metal&quot;)
  magnesium = Elements(&quot;Magnesium&quot;, 12, &quot;Mg&quot;, &quot;Metal&quot;, &quot;Alkali Earth Metal&quot;)
  aluminum = Elements(&quot;Aluminum&quot;, 13, &quot;Al&quot;, &quot;Metal&quot;, &quot;Boron&quot;)
  silicon = Elements(&quot;Silicon&quot;, 14, &quot;Si&quot;, &quot;Metalloid&quot;, &quot;Carbon&quot;)
  phosphorus = Elements(&quot;Phosphorus&quot;, 15, &quot;P&quot;, &quot;Nonmetal&quot;, &quot;Nitrogen&quot;)
  sulfur = Elements(&quot;Sulfur&quot;, 16, &quot;S&quot;, &quot;Nonmetal&quot;, &quot;Oxygen&quot;)
  chlorine = Elements(&quot;Chlorine&quot;, 17, &quot;Cl&quot;, &quot;Nonmetal&quot;, &quot;Halogen&quot;)
  argon = Elements(&quot;Argon&quot;, 18, &quot;Ar&quot;, &quot;Nonmetal&quot;, &quot;Noble Gas&quot;)
  potassium = Elements(&quot;Potassium&quot;, 19, &quot;K&quot;, &quot;Metal&quot;, &quot;Alkali Metal&quot;)
  calcium = Elements(&quot;Calcium&quot;, 20, &quot;Ca&quot;, &quot;Metal&quot;, &quot;Alkali Earth Metal&quot;)
  </code></pre>