vendredi 24 janvier 2020

Python If Statement Error with Multiple Comparisons [closed]

I'm getting a syntax error at the colon in this statement, for the life of me, I can't figure out why. I don't appear to be missing any parenthesis or anything.

if ((payroll["Qtr"] == agency["Qtr"]) and
(payroll["Worked_CC#"] == agency["Worked_CC#"]) and
(payroll["Job_Title"] == agency["Job_Title"]):
    payroll["SumofAgency_Hours"] = agency[" SumOfAgency Hrs"]

Amy help would be appreciated!

Aucun commentaire:

Enregistrer un commentaire