objectives:
Creating and manipulating lists
Exercises:
Write a Python program that defines two lists: list city that stores the names of 6 cities in Oman, and list temp that stores the temperatures of these cities. Use initialization lists to construct the city and temp lists with same sample data.
Using these two lists, your program should print the average temperature in Oman, and tables of hot temperature cities, cold temperature cities and mild temperature cities. Based on the following criteria: Hot temperatures fall in the range >=40
Mild temperatures fall in the range (20,40)
Cold temperatures fall in the range <=20 a="" sample="" run="" is="" given="">=20>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here