geekcomputers / geekcomputers/Python
python--
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 35.4k
- 派生
- 12.9k
- 平均合并
- 2 小时 37 分钟
- 30 天内合并 PR
- 1
描述
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的两个变量赋值开始,在不移动这些行的情况下将解决方案添加到它们下方。检查 issue 中描述的摄氏和华氏结冰阈值,然后确认程序针对给定值准确打印 "Freezing" 或 "Not freezing"。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- backend
- Issue 类型
- 功能
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 42/100