def newname():
info= {}
info["fname"] = input("What is this contacts first name: ")
info["lname"] = input("What is this contacts last name: ")
info["address"] = input("What is this contacts address: ")
info["city"] = input("What is this contacts city: ")
info["state"] = input("What is this contacts state: ")
info["zip"] = input("What is this contacts zip: ")
info["number"] = input("What is this contacts number: ")
addressbook.append(info)
I am trying to create an address book and for the adding a new person, when running my dictionary I get this error message File "line 3, in newname info["fname"] = input("What is this contacts first name: ") File "", line 1, in NameError: name 'Rob' is not defined. Just wondering what I'm missing here. Thanks for the help.