create nested dictionary with user input in python
d = {}
d["Person1"] = {}
d["Person2"] = {}
d["Person3"] = {}
d["Person1"]["Name"] = input("Enter person1 name: ")
d["Person1"]["Age"] = int(input("Enter person1 age: "))
d["Person1"]["Occupation"] = input("Enter person1 occupation: ")
d["Person2"]["Name"] = input("Enter person2 name: ")
d["Person2"]["Age"] = int(input("Enter person2 age: "))
d["Person2"]["Occupation"] = input("Enter person2 occupation: ")
d["Person3"]["Name"] = input("Enter person3 name: ")
d["Person3"]["Age"] = int(input("Enter person3 age: "))
d["Person3"]["Occupation"] = input("Enter person3 occupation: ")
print(d)