Guest User

Untitled

a guest
Feb 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def near_thousand(n):
  2. return ((abs(1000 - n) <= 100) or (abs(2000 - n) <= 100))
  3. print(near_thousand(1000))
  4. print(near_thousand(900))
  5. print(near_thousand(800))
  6. print(near_thousand(2200))
Add Comment
Please, Sign In to add comment