#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)
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