''' Purpose: quick refresher on Boolean calculations ''' # determine whether its input pH level is acidic; i.e., less than 7.0 # acidity limit ACIDIC_THRESHOLD = 7.0 # samples less than threshold are acidic # get pH level of interst reply = input( 'Enter pH level: ' ) pH = float( reply ) print( ) # determine whether sample is acidic is_acidic = ( pH < ACIDIC_THRESHOLD ) # variable is_acidic will store a boolean value! (True/False) # If ph < 7 True (Acidic) # If ph > 7 False (Nonacidic) # print result print( is_acidic ) # We want to use the comparison in an if statement! # all done