Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 21st, 2018
67
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
def near_thousand(n):
return ((abs(1000 - n) <= 100) or (abs(2000 - n) <= 100))
print(near_thousand(1000))
print(near_thousand(900))
print(near_thousand(800))
print(near_thousand(2200))
Add Comment
Please,
Sign In
to add comment
Public Pastes
gpt : csv elo check v001
JavaScript | 9 min ago | 1.96 KB
Er bilen sat til ladning?
YAML | 13 min ago | 1.83 KB
Python: Convert docx to PDF
Python | 19 min ago | 0.82 KB
Untitled
Python | 29 min ago | 1.27 KB
tlco-alt-method.lua
Lua | 39 min ago | 0.69 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
Untitled
C | 1 hour ago | 4.99 KB
Generated Thing
Lua | 1 hour ago | 0.06 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!