A string parameter and returns new string with all the letters of the alphabet that are not in the argument string. The letters in the returned string should be in alphabetical order. The implementation should uses a histogram from the histogram function
Explanation:
The below code is written in python :
alphabet = "abcdefghijklmnopqrstuvwxyz"
test_dups = ["zzz","dog","bookkeeper","subdermatoglyphic","subdermatoglyphics"]
test_miss = ["zzz","subdermatoglyphic","the quick brown fox jumps over the lazy dog"]
def histogram(s):
d = dict()
for c in s:
if c not in d:
d[c] = 1
else:
d[c] += 1
return d
def has_duplicates(s):
for v in histogram(s).values():
if v > 1:
return True
return False
def test_dups_loop():
for s in test_dups:
print(s + ':', has_duplicates(s))
def missing_letters(s):
r = list('abcdefghijklmnopqrstuvwxyz')
s = s.lower()
for c in s.lower():
if c in r:
r.remove(c) # the first matching instance
return ''.join(r)
def test_miss_loop():
for s in test_miss:
print(s + ':', missing_letters(s))
def main():
test_dups_loop()
test_miss_loop()
if __name__ == '__main__':
main()
Answer:
The answer to the give question as follows:
1) \n
2) \t
3) \'
4) \"
5) \\
Explanation:
The description of the above symbols as follows:
- The \n is used to provide the new line spacing.
- The \t is used to provide a tab space.
- To assign a single character value we use \' single.
- The double \" quote is used to assign a string value.
- The backslash is used to provide the character of the escape and it also used in a file path.
Death by PowerPoint simply refers to a phenomenon that's caused as a result of the poor use of a presentation software.
It should be noted that the phrase was coined by Angela Garber. It simply means when an individual uses the presentation software poorly.
The main contributors to death by PowerPoint include confusing graphics, slides that had too much text, etc. It's important to present one's work logically with good information.
Learn more about PowerPoint on:
brainly.com/question/25795152
Answer:
TO UNDERSTAND TO ITS VALUES AND ITS FEATURES
Explanation: