title: Creating a Python Program for Government Data
body: <p>I'm trying to implement a program that performs a calculation using Python objects to represent data. Essentially, I'm trying to figure out what percentage of the
  population voted in the previous election. I also want to determine the name of the county
  that had the highest voter turnout in a previous election, as well as the percentage of the
  population who voted.</p>
  <pre><code>def highest_turnout(data) :
    class County :
      def__init__(self, init_name, init_population, init_voters) :
        self.name = init_name
        self.population = init_population
        self.voters = init_voters
  
   return # modify this as needed
  
  # program evaluated using these objects 
  allegheny = County(&quot;allegheny&quot;, 1000490, 645469)
  philadelphia = County(&quot;philadelphia&quot;, 1134081, 539069)
  montgomery = County(&quot;montgomery&quot;, 568952, 399591)
  lancaster = County(&quot;lancaster&quot;, 345367, 230278)
  delaware = County(&quot;delaware&quot;, 414031, 284538)
  chester = County(&quot;chester&quot;, 319919, 230823)
  bucks = County(&quot;bucks&quot;, 444149, 319816)
  data = [allegheny, philadelphia, montgomery, lancaster, delaware, chester, bucks]  
  
  result = highest_turnout(data) 
  print(result) # prints the output of the function
  </code></pre>
  <p>^^^ That's my current code above. I inputted the data and then created a Class for County. I'm having trouble with this part:</p>
  <ul>
  <li>Finding the County that has the highest turnout, i.e. the highest percentage of the
  population who voted, using the objects’ population and voters attributes</li>
  <li>Returning a tuple containing the name of the County with the highest turnout and the
  percentage of the population who voted, in that order (with the percentage
  represented as a number between 0 and 1)</li>
  </ul>
  <p>Any help / tips would be much appreciated. Happy to clarify things further in the comments. Thank you so much as I'm new to Python :).</p>