Write program to enter rainfall and associated city in two lists. Use this as an example: Holiday = [] name = input("enter name").upper() while name != "XXX": cost = float(input("enter amount to spend...



Write program to enter rainfall and associated city in two lists.






Use this as an example:

Holiday = []



name = input("enter name").upper()



while name != "XXX":



cost = float(input("enter amount to spend >0 and <>



while cost <=0 or="" cost="">10:



print("invalid cost")



cost = float(input("enter amount to spend >0 and <>



gift = name + " " + str(cost)



Holiday.append(name)



Holiday.append(cost)



Holiday.append(gift)



name = input("enter name").upper()






print(Holiday)



for x in Holiday:



print(x)





edit for invalid input. <0 and="" not="">20









print both lists using for loop.



print average and total rainfall and total number of cities





Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here