fork download
  1. def contaMaiuscula(string):
  2. mai = 0
  3. min = 0
  4. for c in string:
  5. if c.isupper():
  6. mai += 1
  7. else:
  8. min += 1
  9. return mai, min
  10.  
  11. #https://pt.stackoverflow.com/q/411680/101
Success #stdin #stdout 0.02s 9204KB
stdin
Standard input is empty
stdout
Standard output is empty