Doing my head in: variable not working at all

This is in one of the projects. The str variable, “afternoon”, works fine in VS Code but is not being printed at all in Replit. I just get a blank space where it should be. I’ve tried adding parentheses, changing single quotation marks to double and back again, just in case Replit is fussy about certain formats. The logic appears OK, and it does work when I’m not running it in Replit. Here’s the link. Please, no advice on other aspects of my code, I’m still working on it. But why the afternoon str variable isn’t printing, I could do with some help:
Time Calculator

No, I’ve figured it out. Formatting again! Sorry.