near_hundred¶
Ask the userr for an integetr. Output 'True' if it is within 10 of 100 or 200. Note: abs() computes the absolute value of a number. For the test cases below, False means “no” and True means “yes”.
This exercise was taken from codingbat.com and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java.