title: Python if elif codes to create a paycheck
body: <p>I am trying to use Python coding to create a paycheck when a user enters a said amount of hours. For under 40 hours a week of work, the standard pay is $9.25 an hour. Anything over 40 hours is rewarded a 150% of bonus(150% of 9.25 that is). I should also be able to take in hours entered in fractions and be able to print the paycheck as the output(which states the number of hours worked, pay per hour, bonus received, if any and the total salary)</p>
  
  <p>So far, I have been able to successfully use the if else statement to get the final result but I do not know how to take in fractions and print the entire paycheck in the output. I am fairly new to Python and really like it a lot. Can someone please help me improvise my code and help me with fractions and printing the entire paycheck?</p>
  
  <p>Here is my code so far. </p>
  
  <pre><code>hours = int(input('Please enter the number of hours...'))
  
  if hours &lt;= 40:
      hourlyWage = hours*(9.25)
  
  elif hours &gt; 40:
      hourlyWage = hours*(9.25*1.5)
  
  print('Your salary is ${0}'.format(hourlyWage))
  </code></pre>
  
  <p>Thank you and help is much appreciated!</p>