my_first_calculator.py icon indicating copy to clipboard operation
my_first_calculator.py copied to clipboard

I'm sorry, but this is badly written code

Open MrPresidentBanana opened this issue 5 years ago • 10 comments

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

MrPresidentBanana avatar Apr 30 '20 19:04 MrPresidentBanana

if you didn't guess, this repo is a joke program

untuned avatar Apr 30 '20 19:04 untuned

A joke? On GitHub?

The audacity!!!

simondebbarma avatar Apr 30 '20 20:04 simondebbarma

Who are you to question the work of a professional?

Debesyla avatar Apr 30 '20 22:04 Debesyla

The code you provided doesn't work on my machine. All it says is "Segmentation fault".

SixBeeps avatar May 01 '20 14:05 SixBeeps

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

AnduRomanYT avatar May 24 '20 09:05 AnduRomanYT

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

zbigniewcebula avatar May 25 '20 07:05 zbigniewcebula

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".

bwalter avatar Jun 29 '20 13:06 bwalter

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.

ghost avatar Aug 09 '20 11:08 ghost

What are you talking about? This is the most efficient possible way to write a calculator!

Visual-mov avatar Oct 03 '20 19:10 Visual-mov

A joke? the audacity

H3xad3cimalDev avatar Jan 18 '21 22:01 H3xad3cimalDev