Python-Scripts icon indicating copy to clipboard operation
Python-Scripts copied to clipboard

Update Convert Temperature.py

Open pradeep583 opened this issue 4 months ago • 0 comments

Updated the Program by passing the parameter x to the functions instead of repeatedly calling the x inside every time

PR Title

Refactored Functions to Accept Parameter x Instead of Repeatedly getting input

Summary

Optimized function design by passing x as a parameter rather than repeatedly accessing it inside each function.

Description

This change simplifies the codebase, improves readability, and enhances performance by reducing redundantly getting input to x. Functions now directly receive x as an argument, making them easier to test and maintain.

The changes are as follows:

  • Change 1
  • Change 2
  1. Updated all relevant functions to accept x as a parameter.
  2. Removed redundant repeated access of x inside functions.

Checks

in the repository

  • [x] Made no changes that degrades the functioning of the repository
  • [x] Gave each commit a better title (unlike updated README.md)

in the PR

  • [x] Followed the format of the pull_request_template
  • [x] Made the Pull Request in a small level (for the creator's wellfare)
  • [x] Tested the changes you made

Thank You,

Pradeep R

pradeep583 avatar Aug 27 '25 09:08 pradeep583