title: Python: Print something if none of the if statements in the function are used
body: <p>I have a function that has several if statements that print "x"  if a condition:</p>
  
  <p>I want to write an if statement that if none of the if statements within the function are used print "something" </p>
  
  <p>reproducible example</p>
  
  <pre><code>def my_function(data):
      ### Constant Features Check
      x = pd.DataFrame({'value':data.nunique()})
      for col in x.index:
          if x.loc[col, 'value'] == 1:
              print('Column', col , 'is a constant value')
  
  ### lets say i have 10's of "for x in y: if statements "like this 
  ### If none of are activated i want to print "something"
  
  ## if none of the print statements in the for loops print, print(something')
  
  </code></pre>