Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.py #657

Merged
merged 2 commits into from
Dec 26, 2023
Merged

Update main.py #657

merged 2 commits into from
Dec 26, 2023

Conversation

shayaanyar
Copy link
Contributor

@shayaanyar shayaanyar commented Dec 5, 2023

The clear function is enhanced to make it machine independent by adding clear and cls attributes. Before, it was only working on windows but now it can work on all operating systems. I also reduced the repetition of the time and added it to the last in a way that it functions the same way but it is now concise and precise. It also increased readability.

Type of change

  • New features by making it machine independent
  • Simplify the code by reducing repetition

Changes proposed in this pull request

  • Project name : Calculator

  • Short description :

  • Simplify the code

  • Enhance the function

Checklist

  • The code is Python 3 compatible
  • I have added relevant comments in my file to make code understandable
  • I have added my project in a folder which includes all the necessary files

The clear function is enhanced to make it machine independent by adding clear and cls attributes. Before, it was only working on windows but now it can work on all operating systems. I also reduced the repetition of the time and added it to the last in a way that it functions the same way but it is now concise and precise. It also increased readability.
Copy link
Contributor

github-actions bot commented Dec 5, 2023

Greetings! This is an automated message from GitHub Actions. 🤖
Your pull request has been received and is awaiting for a review by the repository owner or a maintainer. This may take some time, so please be patient.
While you wait, you can continue to work on other issues or pull requests, or explore the project further. Or you can simply relax and enjoy your day.
Thank you for your contribution to this project! You are awesome! ⭐

Copy link
Contributor Author

@shayaanyar shayaanyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This modifies the code to make it short, precise and machine independent

@Mrinank-Bhowmick
Copy link
Owner

Thanks for your contribution ⭐

@Mrinank-Bhowmick Mrinank-Bhowmick merged commit 0cfe0dc into Mrinank-Bhowmick:main Dec 26, 2023
yanfd pushed a commit to yanfd/python-beginner-projects that referenced this pull request Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants