examples/strings/number_of_different.py
import sys

s = sys.argv[1]

unique = ''
for c in s:
    if c not in unique:
        unique += c

print(len(unique))
examples/strings/number_of_different_set.py
import sys

s = sys.argv[1]

print(len(set(s)))