title: How to alternate lower and upper case on dictionary keys? Python 3
body: <p>im new on python 3. </p>
  
  <p>What I want to do is to alternate upper and lowercase but only on a dictionary key. </p>
  
  <p>my dictionary is created from a list, its key is the word (or list element) and its value is the times this element appears in the list. </p>
  
  <pre><code>kb     = str(input("Give me a string: "));
  txt    = kb.lower();      #Turn string into lowercase
  cadena = txt.split();     #Turn string into list
  dicc   = {};              
  
  for word in cadena:
           if (word in dicc):
               dicc[word] = dicc[word] + 1
           else:
               dicc[word] = 1
  print(dicc)
  </code></pre>
  
  <p>With this code i can get for example:</p>
  
  <pre><code>input: "Hi I like PYthon i am UsING python"
  {'hi': 1, 'i': 2, 'like': 1, 'python': 2, 'am': 1, 'using': 1}
  </code></pre>
  
  <p>but what I am trying to get is actually is:</p>
  
  <pre><code>{'hi': 1, 'I': 2, 'like': 1, 'PYTHON': 2, 'am': 1, 'USING': 1}
  </code></pre>
  
  <p>I tried using this:</p>
  
  <pre><code>for n in dicc.keys():
      if (g%2 == 0):
          n.upper()
  
      else:
          n.lower()
  print(dicc)
  </code></pre>
  
  <p>But it seems that I have no idea of what I'm doing.
  Any help would be appreciated. </p>