Write a Python program to count the Uppercase characters within a given string. Example if s = “Python Programming”, the program must returns 2.
# initializing the number of uppercase characters
numberUpper = 0
# iterate over all characters of s:
for x in s:
numberUpper = numberUpper + 1
s = "Python Programmin"
print("The number of uppercase characters in s is :" , countUpper(s))
# The output is :
# The number of uppercase characters in s is : 2