title: Python-sys.argv code for finding number of upper case letters in a string
body: <p>I wrote a code below in sys.argv library in Python to find the number of upper case letters. This code returns <code>None</code> in input - <em>ApplE is HoT</em>. Any help would be appreciated.</p>
  <pre><code>import sys
  def c_upper(s):
      upper = 0
      for char in s:
          if char.isupper():
              upper += 1
          else:
              pass
  
  s = str(sys.argv[1])
  print(c_upper(s))
  
  c_upper(s)
  </code></pre>