Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Python Online

def near_thousand (n):
    return(abs(1000-n)<=100) or (abs(2000-n)<=100)
print(near_thousand(1000))
print(near_thousand(800))
print(near_thousand(900))
print(near_thousand(2000))
print(near_thousand(1900))

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.