Answer the question
In order to leave comments, you need to log in
Does not recognize a variable in the random module, how to fix it?
number_limits = random.randrange(num1, num2)
num1 == 2
num2 == 4
Answer the question
In order to leave comments, you need to log in
Two mistakes. One is that you have a procedural style of programming (this is not a bug) and therefore variables must be declared before calling the function. The second - you didn't announce it even after. What you have done is nonsense code.
num1 = 2
num2 = 4
number_limits = random.randrange(num1, num2)
Decision:
num1 == 2
num2 == 4
number_limits = random.randrange(num1, num2)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question