Python Basics Week 2 Homework Coding Exercise | SheCodes

Python Basics Week 2 Homework Exercise

From the Python Basics workshop

Instructions
  • Create a new Google Colab
  • Ask for a city name
  • Ask the user what temperature it is currently (in Celsius)
  • If the temperature is greater than 20ºC
  • Display this sentence:
It is currently warm in Lisbon with a temperature of 20ºC
  • If the temperature is greater than 10ºC
  • Display this sentence:
It is currently chilly in Lisbon with a temperature of 15ºC
  • If the temperature is less than 10ºC
  • Display this sentence:
It is currently cold in Lisbon with a temperature of 5ºC
  • If the user didn’t enter a city and temperature
Please try again and enter a city and temperature