Identify the error in the following short program and point…

Identify the error in the following short program and point it out: def y() -> int :    return 0 def mystery(x : int) -> int:    s = 0    y = x    i = 0    while i < x:        x = i + 1           s = s + x        x = x + 1                 return s

Given the following function, what is the bug? def get_perfo…

Given the following function, what is the bug? def get_performance(grade: str) -> str:   match grade:      case “A”: return “Excellent”      case “B”: return “Good”      case “C”: return “Mediocre”      case “D”: return “Weak”      case “F”: return “Bad”

What are the values of num1 and num2 and result after execut…

What are the values of num1 and num2 and result after executing the code snippet below? def mystery(first_num: int, second_num: int) -> int:   first_num      = first_num * 2   second_num = second_num * 3   return x + y def main() -> None:   num1 = 10   num2 = 11   result = mystery(num1, num2) main()