Python Syntax error ("") : <p>Here is my code for my program but I'm having problems with a syntax error I cant figure out what the problem is. The Error I'm getting is in <code>print "employee / supervisor id :" ,k.get_id()," Date joined :" ,k.get_date()</code>The Syntax error has to do with the "" in that line of code. </p>

<pre><code>  `import datetime #this will import the formatting for date and tiem

class employee:

"""docstring for employee"""

def __init__(self, empid,loc,enttime):  

    self.empid = empid

    self.enttime = enttime

    self.exitime = None

    self.date = None

    self.loc = loc

def exittime(self,exitime):

    self.exitime = exitime

def setdate(self,date):

    self.date = date

def get_id(self):

    return self.empid

def get_date(self):

    return self.date

class supervisor(object):

"""docstring for supervisor"""

def __init__(self, supid,loc,enttime):

    self.supid = supid

    self.deptid =loc

    self.enttime =enttime

    self.exitime =None

    self.date = None

def exittime(self,exitime):

    self.exitime = exitime

def setdate(self,date):

    self.date = date

def get_id(self):

    return self.supid

def get_date(self):

    return self.date

def printbydate(l):

    l.sort(key=lambda x: x.date, reverse=True)

    for k in l:
        print "employee / supervisor id :" ,k.get_id()," Date joined :" ,k.get_date()

date1 = datetime.date(2015, 11, 20)

date2 = datetime.date(2017, 11, 27)
a = employee("e112","abc",12)
b = supervisor("s341","abc",14)
a.setdate(date1)
b.setdate(date2)
a.exittime(19)
b.exittime(19)
pil =[]

pil.append(a)
pil.append(b)
printbydate(pil)'
</code></pre>
