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

Updation in TempConversation.py #155

Open
Soyvor opened this issue Apr 11, 2024 · 0 comments
Open

Updation in TempConversation.py #155

Soyvor opened this issue Apr 11, 2024 · 0 comments

Comments

@Soyvor
Copy link

Soyvor commented Apr 11, 2024

Function and Variable Naming: Changed function names and variable names to follow Python's naming conventions (snake_case).

Input Parsing: Changed eval to float for parsing input to ensure safer evaluation of user input.

Output Formatting: Used f-strings for cleaner and more readable output formatting.

Choice Comparison: Changed the comparison to strings ('1', '2', '3') instead of integers to match the input type.

Exit Condition: Changed the exit condition to compare the choice with a string '3' instead of an integer 3.

Main Guard: Added if name == "main": guard to ensure that main() function is executed only when the script is run directly, not when it's imported elsewhere. This is a common best practice in Python.

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

No branches or pull requests

1 participant