Write a program to print all distinct characters of a string in the order they appear.
Implement def distinct_characters(s):, where s is a string. Return a string containing each character once, preserving the order of its first occurrence. Treat uppercase and lowercase characters as distinct, and preserve spaces and punctuation as ordinary characters.
Input length may range from 0 to 10,000 characters.
def distinct_characters(s):