Question d’entretien chez DocMagic

Example of defining a function, in python: def functionName(argument): if something: do something return result Example defining an Object in python: class feeObj: def __init__(self): self.Amount = 1100 self.PaidBy = "Borrower" self.Description = "Application Fee" and so creating an object is: myfee = feeObj() so when you call each field in the object myfee.Amount would give you 1100.0 myfee.PaidBy would give you "Borrower" myfee.Description would give you "Application Fee" Using the examples above, create a function by passing the myfee object as an argument. And in the function, if the PaidBy is not Borrower return the Description plus the string " non-borrower fee"