title: Precedence Function
body: <p>I'm trying to write a function, that goes within my main program, that will compare the precedence of operators being input by the user. The function would look for the following operators:</p>
  
  <p><code>+</code>, <code>-</code>, <code>*</code> , <code>/</code> with <code>*</code>, <code>/</code> having the highest precedence and <code>+</code>, <code>-</code> having the lowest precedence. </p>
  
  <p>The operators with the lowest precedence go on the bottom of a stack while those with the highest precedence go on the top of the stack. So if a user types in <code>+-*/</code>, <code>*/+-</code> should be displayed in the terminal.</p>
  
  <p>Any ideas on how I should go about this? </p>