Created
March 14, 2018 01:36
-
-
Save dogac00/fa9db6547fd437b2878a5f6380e3f194 to your computer and use it in GitHub Desktop.
Calculator in Python (Nearly One Liner)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Calculator(object): | |
def evaluate(self, string): | |
return round(eval(string), 10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment