class Employee: company = "Google" def getSalary(self, signature): print(f"Salary for this employee working in {self.company} is {self.salary}\n{signature}") harry = Employee() harry.salary = 100000 harry.getSalary("Thanks!") # Employee.getSalary(harry)
signature
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)