Monday, 10 October 2016

Dictionary for days of week & temperature

#program to accept the day of week & temperature of that day and display them in the form of dictionary


d={} 
ch='y'
for i in range(7):
    day=input('enter day:')
    temp=float(input("enter temperature:"))
    d[day]=temp
print('DAY & TEMPERATURE')
print(d)

No comments:

Post a Comment