geekcomputers / geekcomputers/Python
python--
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 35.4k
- Forks
- 12.9k
- Avg merge
- 2h 37m
- Merged PRs (30d)
- 1
Description
temperature = -3.7
celsius = True
You may modify the lines of code above, but don't move them! When you Submit your code, we'll change these lines to assign different values to the variables.
Above are given two variables. temperature is a float that holds a temperature. celsius is a boolean that represents whether the temperature is in Celsius; if it's False, then the given temperature is actually in Fahrenheit.
Add some code below that prints "Freezing" if the values above represent a freezing temperature, and "Not freezing" if they don't.
In Celsius, freezing is less than or equal to 0 degrees. In Fahrenheit, freezing is less than or equal to 32 degrees.
Comment your code
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the two provided variable assignments and add the solution below them without moving those lines. Check the Celsius and Fahrenheit freezing thresholds described in the issue, then confirm the program prints exactly "Freezing" or "Not freezing" for the supplied values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100