marks={}

x=int(input("enter phy : "))
marks.update({"phy" : x})

x=int(input("enter math : "))
marks.update({"math" : x})

x=int(input("enter chem : "))
marks.update({"chem" : x})

print(marks)

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: