I'm having problems developing a function to count and return the values of characters in a string. Can't use set, list or dictionaries. Example, the string is AAACCD, should return 3A 2C 1D.
def uniqueValues(string):
count = 0
for s in string:
if s in "ABCDEFGHIJKL":
count +=1
return count
print(uniqueValues("AAACCD"))
this will only show the output 6, which is the number of characters of the string.