Question: answer only Multiple Question 1 def analyzestring(s) for character in s: chrcount s.count (character) if chrcount not in d: d(oh r count] [character] d [chrcount].append

answer only
Multiple Question 1 def analyzestring(s) for character in s: chrcount s.count (character) if chrcount not in d: d(oh r count] [character] d [chrcount].append (character) else: return d print (analyzestring('indeed)) b. 4 c. 2 e. none of the above Question 2 def notIn(a, b): while True: if b not in a[indexA:]: return a[indexA: else: indexA 1 return " firststring'aha' secondString'a' print(notIn(firststring, secondString)) a. this is an infinite loop that never returns b. "" (the empty string) c. a d. None e. none of the above Question 3 dTest = {1 : 'one', 0: 'zero', print (dTest [0] [1]) 'two ' :2) a. z b. o c. ['one, 'zero'] d. ['zero', 'one'] e. none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
