my_first_calculator.py
my_first_calculator.py copied to clipboard
I'm sorry, but this is badly written code
what you should do is something along the lines of
if sign == '+': result = num1+num2 print(num1 + "+" + num2 + " = " + result) if sign == '-': #...
That way you don't need thousands of lines of code, and it can also process numbers larger than just 50
if you didn't guess, this repo is a joke program
A joke? On GitHub?
The audacity!!!
Who are you to question the work of a professional?
The code you provided doesn't work on my machine. All it says is "Segmentation fault".
what you should do is something along the lines of
if sign == '+': result = num1+num2 print(num1 + "+" + num2 + " = " + result) if sign == '-': #...
That way you don't need thousands of lines of code, and it can also process numbers larger than just 50
I think this meme code rather than an actual shot at programing
what you should do is something along the lines of
if sign == '+': result = num1+num2 print(num1 + "+" + num2 + " = " + result) if sign == '-': #...
That way you don't need thousands of lines of code, and it can also process numbers larger than just 50
You: https://i.pinimg.com/originals/39/27/f0/3927f0279ed109e35afa4ed19036d29b.png
I fully disagree. The proposed code might work but it is unreadable and only the smart person who wrote it can understand it. The original code is much more simple and should be kept. I suggest to close this issue as "won't fix".
Try my Calculator, on my repo Shahibur46/Calculator, I pretty sure you all will not be disappointed, please do check, I need some helpers and contributors.
What are you talking about? This is the most efficient possible way to write a calculator!
A joke? the audacity