Computer Science, asked by rajeswarirajeswari07, 2 months ago

Create a dictionary of days in months. Months is a key and corresponding

days is a value

i)display. keys() ii) display. Items() iii)display. value()​

Answers

Answered by sanjanagowda77
0

Explanation:

Programming Example

dict={}

ch='y'

while ch=='y' or ch=='Y':

month=input("Enter name of month : ")

days=eval(input("Enter no. of days of month : "))

dict[month]=days.

ch=input("Want to add more months (Y/N) : ")

print(dict)

Similar questions