In this code , I want the user to enter an integer number like n and enter n names. And I need to find the number of non-repeating letters in each name entered by the user and get the maximum between those numbers and print the maximum result, which is the number of non-repeating letters of the name that has the most non-repeating letters.
I have a problem in the part where I have to get the maximum number of each non-repeating letter in each name and I don't know how to do this:
n = int(input())
for i in range(n):
    s = input()
    t = ''
    for ch in s:
        if ch not in t:
            t += ch