ryanm-10 / pycalculator

0 stars 0 forks source link

Trying to clean up the code a little and make it more efficient/easier to read #2

Closed COMMANDO2406 closed 1 year ago

COMMANDO2406 commented 1 year ago

Hi, this is a great first project I have just modified some code and made basic changes to make it easier to read and add other features for others.

COMMANDO2406 commented 1 year ago

@ryanm-10

ryanm-10 commented 1 year ago

@COMMANDO2406 thank u for the help!

ryanm-10 commented 1 year ago

@COMMANDO2406 I was about to update my project for the calculator, I wanted to keep the while loop and I saw if I enter a word for the first or second value I get an error and i want it to return 'invalid input' can you check it out in a minute to see if the updated code makes sense?

COMMANDO2406 commented 1 year ago

I guess you can add an if statement which checks if the entered value is an integer or a float value

COMMANDO2406 commented 1 year ago

I can look at it by tomorrow if that's ok?