Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python If Boolean example

def a_bigger(a, b):
  if a > b and (a - b) >= 2:
    return True
  else:
    return False
  ## Can all be written as just
  ## return (a > b and (a - b) >= 2)
Source by codingbat.com #
 
PREVIOUS NEXT
Tagged: #Python #If #Boolean
ADD COMMENT
Topic
Name
6+5 =