# Arup Guha
# 11/23/2024
# Example shoing string manipulation and use of ord, chr

# test string.
s = "thisisastring"

# Set to all zeroes.
freq = []
for i in range(26):
    freq.append(0)

# Go through all the letters.
for let in s:
    freq[ord(let)-ord('a')] += 1

# Prints out how many of each letter there is.
for i in range(len(freq)):
    print( chr(i+ord('a')),"\t",freq[i])
