def message(): print(“New Power!”) def oblivious(aStr): n =…

def message(): print(“New Power!”) def oblivious(aStr): n = 0 if message() == “New Power!”: print(“Need an inhibitor”) n += 10 else: if aStr.lower() == “jean”: print(“the telepath”) n -= 3 elif aStr.upper() == “PETER PARKER”: print(“Who is it?”) return n oblivious(“Peter Parker”)

The following code can cause an error. What line is the sour…

The following code can cause an error. What line is the source of issue?1 | def mysteryCounter(aStr): 2 | counter = 9 3 | if aStr == “Peter Parker”: 4 | print(“Spider man!”) 5 | counter += 10 6 | strength = 100 7 | elif aStr == “Yelena Belova”: 8 | counter += 10 9 | strength = 90 10| print(f”The strength is {strength}!”) 11| return counter 12| mysteryCounter(“MJ”)

CODING 3 (14 pts)Peter is trying to gain a better understand…

CODING 3 (14 pts)Peter is trying to gain a better understanding of his new powers and control them. Write a function called spideyTracker() that takes two parameters: threshold (int) representing a numeric value for Peter’s inhibitor, and calibrations (str) representing a series of calibrations being made to the inhibitor to allow for more human DNA (“h”), or for more arachnid DNA (“a”), both case insensitive. Your function should read over all calibrations to determine the load of the inhibitor. Human DNA decreases the load of the inhibitor by 3, and arachnid DNA increases the load of the inhibitor by 5. If the calculated load of the inhibitor is strictly less than the threshold, return “A Spectacular result!” Otherwise, print “Oh no!” and return “Try a different combination.”Example #1:>>> print(spideyTracker(15, “AaAhAh”))Expected output #1:A Spectacular result!Example #2:>>> print(spideyTracker(10, “hAhaHaHaA”))Expected output #2:Oh no! Try a different combination.

Which of the following function calls will cause an error?de…

Which of the following function calls will cause an error?def changeStr(aStr): count = 0 for i in range(len(aStr)): if aStr[i] in “aeiou”: aStr[i] = aStr[i].upper() elif aStr[i].isdigit(): count += 1 else: continue return count I. changeStr(“V-Max”) II. changeStr(“SI-RNA”) III. changeStr(“CS1301”) IV. changeStr(“:D”)