Print the dictionary

  Print the dictionary

QUESTION DESCRIPTION

Write a program to get the input of key and value of the element in dictionary.

Display the key-value pair in the python dictionary format.

Refer sample input and output for formatting specification.

All float values are displayed correct to 2 decimal places.

All text in bold corresponds to input and the rest corresponds to output.

a=int(input())
b=int(input())
dict={a:b}
print("Updated dictionary is:")
print(dict)

Comments