import datetime
@staticmethod
def checkArbeitstag(wochentag):
if wochentag.weekday() == 5 or if wochentag.weekday() == 6:
return False
print('Heute muss nicht gearbeitet werden')
return True
print('Heute muss gearbeitet werden')
Mind the link for a picture below
Dont mind the german language^^ But seriously my if statements even the ones i copy from the internet are messed up it alsways shows me a syntax error saying: invalid syntax (, line 151)
There are abput 150 lines of code before this little section but all that works fine, only the if statement seems to have some kind of issue.
Im using python 3.7.2
Aucun commentaire:
Enregistrer un commentaire