Inrange Function In Python Practice