Skip to content

GemCityTECH/new-to-tech-bad-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

New To Tech Refactoring

A downselect of python-code-disasters to support a New To Tech session on refactoring and code review for Gem City Tech.

How to run

Prerequisites

You must have Python installed.

Execution

python calculator.py

Tasks

  • Extract the addition, subtraction, multiplication, and division functionality to their own function(s)
  • Deduplicate the codebase
  • Add exception handling and protection against the user entering invalid symbols or letters
  • Add support for typing 2 * 5 instead of inputting the numbers and operators in separate stages
  • Migrate the codebase to a CLI library like click
  • Add support for exponents and square roots
  • Begin developing a unit test suite using pytest

About

Repo in support of New To Tech presentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages