Skip to content

Refactored Code for Calculator #1890

Open
@mukeshmade

Description

@mukeshmade

There is an unnecessary else block after checking for the 'quit' input. It is not required since the code exits the loop in that case.

Have to Add a try-except block to handle invalid equations. If an exception occurs during evaluation, it will print an error message and prompt the user to try again.

Hello!
I am a proud contributor at GSSoC '23. I would like to the contribute to this project.

@avinashkranjan if you think it is useful then do assign me the issue under GSSoC '23 with the level of the PR as well

Metadata

Metadata

Assignees

Labels

gssoc23Issues created for/by the GirlScript Summer of Code'23 Participantslevel1Wiki or Major Documentation Work

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions