6.0: 🏆 Final Challenge

Lesson

6.0: 🏆 Final Challenge

Your final challenge for the Python black hat course is to use all of the concepts you have learned so far to make a simple calculator. It can work however you want, BUT it must do all of the following:

  • Allow a user to input two numbers (eg, 3 and 7)
  • Allow a user to choose a numerical operator to apply (remember +, -, * and /)
  • Calculate the result (eg, 3 * 7)
  • Print the result

Hints:

  • You can use if statements to choose what to do for each operator.
  • Your program does not have to be error-proof, it just has to work when used the way it is supposed to.
  • A lot of the code you need to write is pretty similar to previous lessons! Remember you can go back and look at them..

Good luck!

@

Not recently active