Before the code worked, now it doesn't. Any help?

Hello and welcome.

What is “the OU website”? Please keep in mind that you are writing for an international audience here.

In any event, there’s a conflict here. In up-to-date versions of Python, “The integer alteration” (as you put it) is necessary:

But in those same versions of Python, print also requires parentheses:

Please keep in mind that all 2.x versions of Python have been unsupported since Jan 1, 2020:

Using “interactive” implementations of Python on a website can be convenient, but they aren’t reliable. In general, anyone can make a Python tutorial and they don’t necessarily know what they’re talking about. If they try to give you an interactive Python, they don’t necessarily tell you what version of Python it is. Or necessarily know what version. Or know that it matters. (It mostly wouldn’t: the changes are quite slow.)

We’d be happy to help you set up Python on your own computer. The skills involved, IMO, are among the first big steps in treating your computer as your own property, and as a tool rather than an appliance.

For future questions on the forum, please read the pinned thread for details on post formatting. We do want code to be shown as text, but we want it properly formatted so we can read it properly. Indentation is crucial to the logic of Python code, and it’s also important that we get code with ordinary "quotes" (not “smart quotes” which are a different character, that look “like this” - see?). It’s also useful for error messages, because sometimes they’ll have things angle brackets (like <stdin>) that get stripped away (the forum thinks they’re invalid or possibly malicious HTML).