I have too much input for an If-statement to place it all on one line, is there a way to transfer it onto the next line ?
if monthConversion != "Jan" or "Feb" or "Mar" or "Apr" or "May" \
or "Jun" or "Jul" or "Aug" or "Sep" or "Oct" or "Nov" or "Dec":
I tried to write this all on one line but it didn't fit. I then tried to put "or" after "Oct" and write "Nov" on the next following line, but Python says "Expression expected" and "Illegal variable for target annotation".
Aucun commentaire:
Enregistrer un commentaire