Answer the question
In order to leave comments, you need to log in
How to randomize a number using input?
I tried to make a randomizer in which you can enter numbers through input
import random
a = input("От скольки: ")
b = input("До скольки: ")
c = random.randint(a, b)
print(c)
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "/usr/lib/python3.8/random.py", line 248, in randint
return self.randrange(a, b+1)
TypeError: can only concatenate str (not "int") to str
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question