I'm teaching myself some Python for a job opportunity. I've just started, and I can't seem to reconcile how one uses print"".format() to output floats with only two digits after the decimal.
I've tried putting .2f in different places; no luck.
This is what I have:
def displayEmployeeData(self):
print "Name: {:<10} ID: {:<10} Team: {:<10} salary: ${:<10} tenure: {:<10} months".format(self.name, self.ID, self.team, self.salary, self.tenure)