Oct-26-2018, 01:06 PM
Hello, I am trying to create a new class with the following code :
<__main__.employee object at 0x0000008500B7A748>
Kindly guide.Thanks!!
class employee: def __init__(self, first, sal): self.first = first self.sal = sal emp_1 = employee('rahul', 10000) print(emp_1)But when I am run it, instead of displaying the first and sal it gives the following output :
<__main__.employee object at 0x0000008500B7A748>
Kindly guide.Thanks!!