Command-line program to rate a given temperature
I'd like you to write a program temp.py that accepts a temperature and prints a phrase describing the temperature.
The given temperature will be in Fahrenheit and should print one of these three statements:
Here's how your program should work:
$ python temp.py 80
Quite nice
$ python temp.py 82
Too hot
$ python temp.py 60
Too cold
$ python temp.py 70
Quite nice
Note that this program should not prompt the user for input, but instead should accept a single command-line argument.
You can assume the temperature is a positive two-digit number.
This is just a preview of the problem statement.
This mini exercise includes 6 hint links. This mini exercise has no bonuses.
To solve this exercise, sign in to your Python Morsels account.
My name is Trey Hunner and I hold Python trainings for teams. I've spent countless hours refining my most interesting Python exercises into Python Morsels, a Python skill-building platform for folks who already know Python. Python Morsels is design to help you deepen your Python skills every week.
Sign up for Python Morsels to access this exercise and many more.
Join Python Morsels ✨