What does it mean when they say ‘module object cannot be interpreted as an integer’ ?
Please include the programming language you are using and preferrably the link to your Repl.
1 Like
It means you’re attempting to use a module (such as random
) as an int. For example, code that would have this error is:
import random
x = random + 1 # attempting to use "random" as an int and adding 1 to it
Also, welcome to the community! @sonicx180
3 Likes
You know so much. I would have had to see the code to figure that out. You found the language and everything.
2 Likes
No; I know very little I just tend to check the profile and make a conjecture as to the language. In fact, as evidenced by your TL, you are a better member of community
2 Likes