Start with the following Python code.
alphabet = "abcdefghijklmnopqrstuvwxyz"
test_miss = ["zzz","subdermatoglyphic","the quick brown fox jumps over
the lazy dog"]
# From Section 11.2 of:
# Downey, A. (2015). Think Python: How to think like a computer scientist.
Needham, Massachusetts: Green Tree Press.
d = dict()
for c in s:
if c not in d:
d[c] = 1
d[c] += 1
Copy the code above into your program but write all the other code for
this assignment yourself.
Do not copy any code from another
Write a function called
that takes a string parameter and
if the string has any repeated characters. Otherwise, it
by creating a histogram using
function above. Do not use any of the implementations
that are given in your textbook. Instead, your
implementation should use the counts in the histogram to decide if there
are any duplicates.
Write a loop over the strings in the provided
list. Print each
string in the list and whether or not it has any duplicates based on the
return value of
for that string. For example, the output
for "aaa" and "abc" would be the following.
aaa has duplicates
abc has no duplicates
Print a line like one of the above for each of the strings in