title: check if 2 given number are close to each other python
body: <p>i have been asked to make code that doesen't have loops and check if first number is close to second number (close means bigger or smaller by one).I tried using huge conditions but i wodered maybe there is an easyer way then do things like this:</p>
  
  <blockquote>
    <p>if num1 == num2 or num1 == num2 - 1 or num1 == num2 + 1</p>
  </blockquote>