You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rookie mistake, innit? Can't be messing about with the random library without giving it a proper invite to the party. That's gonna throw a right spanner in the works when you try to run the code. You'll be getting all sorts of nasty errors popping up, mate.
Remember, always import random at the top of your Python file before you start conjuring up any magic with it. It's the polite thing to do, and it'll save you a lot of headaches down the line.
The code for magic8.py uses the Python random library without importing it. This causes issues during runtime.
The text was updated successfully, but these errors were encountered: