I am having issues regarding python. My issue is that my code always prints the first if statements return even if the user inputs a valid integer. I genuinely do not know the issue. I have to allow the user to input a value that is restricted to 1-10 and I have to be able to output either, "Please input an integer between 1-10" or "That's not even a number silly!". Could someone please help me and do more than just write the code, but explain it too?
value = input("Please input an integer: ")
def numValue(value):
for value in range(-1000, 1000):
if (value < 1, value > 10):
return "Please input a number between 1-10."
elif (value >= 1, value <= 10):
return "Great choice!"
print (numValue(value))