title: How do i print something if i don't get a float as an input
body: <pre><code>hours,pay=map(float,input("Enter the numbers of hours and the salary/hour,separated by a space bar:").split())
  
  def computepay(hours,pay):
      if hours &gt;40:
          return ((pay*40)+((((hours-40)/2)+(hours-40))*pay))
      if hours &lt;=40:
          return int(hours*pay)
      if hours and pay != float:
          print ("to bad")
  
  
  print(computepay(hours,pay))
  </code></pre>
  
  <p>In the function I want to print a negative message if the input is not a float. How do I do that? As you can see I tried something but it didn't work.</p>