D={}

count=0

while count<3:

    name=input("Enter name: ")

    age=input("Enter age: ")

    sal=input("Enter salary: ")

    count+=1  

    D[count]['names']=name   >>>>>>error

    D[count]['ages']=age

    D[count]['salary']=sal

print("data=" D)