Are you looking for Reliable Online Writing Services? We are Here For you. Our Professional Tutors Can Handle Any Kind of Assignment. Don’t Use Plagiarized Sources. Get Your Perfect Paper Today! Click Here To Order.

The “def again” does not work when running the program and there is no error message. This is an example of the piece of code. I also included all of the code including the Mylib”def again():  calc_again = str(input(‘Continue looping? Y/N: ‘))  if calc_again == ‘Y’:    calculate()  elif calc_again == ‘N’:    print()    print(‘Thanks for using our calculator!’)  else:    quit()”#Prints a comment at the beginning of the programprint(‘This is my first programming assignment’)print()# Function to put code block into a function called calculatedef calculate():#Start of the try except ValueError  try:    #import Mylib to the program    import Mylib#User enters the range    lowRange = float(input(‘Enter your low range: ‘))    highRange = float(input(‘Enter your high range: ‘))#Allows user to input a float number for num_1 and a float number for num_2    num_1 = float(input(‘Enter your First number: ‘))    num_2 = float(input(‘Enter your Second number: ‘))    operation = str(input(“Enter problem sting like this, N1, N2, operator: “))    lr = lowRange    hr = highRange# User chooses a number to choose operator and print the result    choices = [“1)Add two numbers”, “2)Subtract two numbers”, “3)Multiply two numbers”, “4)Divide two numbers”, “5)Scalc”, “6)All in one”]    print(choices)    userChoice = input(“Enter a number for the operation”)    calc1 = Mylib.Calc1()    res = {      ‘Add’: calc1.add(num_1, num_2),      ‘Sub’: calc1.subtract(num_1, num_2),      ‘Mult’: calc1.multiply(num_1, num_2),      ‘Div’: calc1.divide(num_1, num_2)      }     #except ValueError to inform the user a number must be used  except ValueError:    print(“You must enter a number!”)     else:#Checks to see if num_1 and num_2 are within range of lowRange and highRange    if num_1 >= lowRange and num_2 <= highRange:# Loop that checks the users choice and prints result importing functions from Mylib      if userChoice == '1':        print(res['Add'])      elif userChoice == '2':        print(res['Sub'])      elif userChoice == '3':        print(res['Mult'])      elif userChoice == '4':    # try except ZeroDivisionError for dividing by zero         try:          print(res['Div'])        except ZeroDivisionError:          print("You cannot divide by zero")      elif userChoice == '5':        import Mylib        print(calc1.scalc(operation))      elif userChoice == '6':        import Mylib        print(res, calc1.scalc(operation))    else:      import Mylib      print(calc1.isInRange(lr, hr, num_1, num_2))      again() #Function again() asks the user if they want to loop again or quitdef again():  calc_again = str(input('Continue looping? Y/N: '))  if calc_again == 'Y':    calculate()  elif calc_again == 'N':    print()    print('Thanks for using our calculator!')  else:    quit()   # Call calculate() outside of the functioncalculate()Mylib# Mylib#Class Calc1class Calc1:#Function for each math operation  def add(self,x,y):    answer = x + y    return answer  def subtract(self,x,y):    answer = x - y    return answer  def multiply(self,x,y):    answer = x * y    return answer  def divide(self,x,y):    answer = x / y    return answer#Function that prints a statement if num_1 and num_2 are not in range  def isInRange(self, lr, hr, num_1, num_2):    if num_1 <= lr:      return 'The input values are outside the input ranges. Please check the numbers and try again.'    elif num_2 >= hr:      return ‘The input values are outside the input ranges. Please check the numbers and try again.’# Function that is a string for num_1, num_2, and the operator  def scalc(self, p1):    istring = p1.split(“,”)# Loop that will check the three locations(0,1,2) and print the results    if istring[2] == “+”:      res = self.add(int(istring[0]), int(istring[1]))    elif istring[2] == “-“:      res = self.subtract(int(istring[0]), int(istring[1]))    elif istring[2] == “*”:      res = self.multiply(int(istring[0]), int(istring[1]))    elif istring[2] == “/”:      res = self.division(int(istring[0]), int(istring[1]))    return res  Computer Science Engineering & Technology Python Programming