I keep getting this error:
IndentationError: unindent does not match any outer indentation level on line 8
def salary_emp(self):
^
How can it match if I just defining function? Thanks in advance.
import math
class employee:
def __init__(self, name, lname, age):
self.name = name
self.lname = lname
self.age = age
def salary_emp(self):
print("{}".format((self.age - 25)*1000 + 50000))
empl1 = employee("Will", "Brown", 40)
salary_emp(empl1)
print(empl1)
print(empl1.name)
print(empl1.lname)