geekcomputers / geekcomputers/Python

python--

Open
#307 10 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.