I have a script that is supposed to compare my argument number with two other numbers. If its between them it should return true, if not false
#!/usr/bin/python3
import sys
obj1 = int(sys.argv[1])
obj2 = (1900, 2100)
def range_check(obj1, obj2):
if obj1 in range(obj2):
return True
else:
return False
print(range_check(obj1, obj2))
I keep on getting "tuple integer error". Please help!