-
import os
to clean the terminal -
import math sqrt
to do the square root -
from operator import add, sub, mul, pow
taking only theadd
,sub
,mul
,pow
methods from the operator library -> add = addition; -> sub = subtraction; -> mul = multiplication; -> pow = exponentiation. -
BOLD_TEXT = formatting the text in bold and going 60 to the right.
-
OPTIONS = Calculation options (Self explanatory)
-
Operations is a dictionary where you have the keys (our "options"), each value is the representation of how the calculation should happen (calling the
operators
and functionslambda
)
-
Notifications
You must be signed in to change notification settings - Fork 0
angelollima/calculator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Calculator built with Python!
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published