title: Pretty-printing data from counter - Python
body: <p>I'm fairly new to Python and still have trouble displaying data that I have in the way that I want. I have this code that determines the most frequent character in a string. However, how I have it prints it as such: <code>('A', 3)</code>.</p>
  
  <pre><code>stringToData = raw_input("Please enter your string: ")
  import collections
  print (collections.Counter(stringToData).most_common(1)[0])
  </code></pre>
  
  <p>I just wanted some insight into how to manipulate this code to something similar to this:</p>
  
  <pre><code>print "In your string, there are: %s vowels and %s consonants." % (vowels, cons)
  </code></pre>
  
  <p>Obviously it would say, "In your string, the most frequent character is (character), which occurred (number) times."</p>
  
  <p>I am using Python 2.7, and I tried using the <code>pprint</code> but I didn't really understand how to incorporate that into my existing code.</p>
  
  <p><strong>Edit: Basically, what I am asking is how I can code finding the most frequent character in a string and printing it in a manner such as "In your string, the most frequent character is (character), which occurred (number) times."</strong>  </p>