Skip to content

fix: applied Python naming conventions and best practices in TempConv…#188

Open
ASHVINIPATIL1 wants to merge 2 commits intojoeyajames:masterfrom
ASHVINIPATIL1:fix/temp-conversion-naming-conventions
Open

fix: applied Python naming conventions and best practices in TempConv…#188
ASHVINIPATIL1 wants to merge 2 commits intojoeyajames:masterfrom
ASHVINIPATIL1:fix/temp-conversion-naming-conventions

Conversation

@ASHVINIPATIL1
Copy link
Copy Markdown

Fixes #155

Changes made:

  • Renamed toCelsius → to_celsius and toFahrenheit → to_fahrenheit (snake_case)
  • Replaced eval with float for safer input parsing
  • Used f-strings for cleaner output formatting
  • Changed choice comparisons to strings ('1', '2', '3')
  • Changed exit condition to compare with string '3'
  • Added if name == "main": guard

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.

Updation in TempConversation.py

1 participant