So not allowed are; 'while loops', 'sets', 'arrays' (and lists I assume)..
You can create a string with all unique characters and loop through those with a for loop, this way you don't need a list, array array or while loop.
letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,.?*&^%$#@!etc"
def unique_count(some_string):
letter_count = 0
for letter in letters:
if letter in some_string:
letter_count += 1
return letter_count
print(unique_count("whatEver@")
// this will print 9 (because E != e )
Perhaps not as elegant because of the long string to match against, but it meets the requirement of not using lists, arrays or while loop.