def upper_ctr(str):
    
    upper_ctr = 0
    for i in range(len(str)):
          if str[i] >= 'A' and str[i] <= 'Z': upper_ctr += 1
          return upper_ctr
def upper_ctr(str):
    upper_ctr = 0
   
    for C in range(len(str)):
        if str[C] >= "A" and str[C] <= "Z":
            upper_ctr += 1
        return upper_ctr