print("Cantidad de segundos en buscar un contacto: ", ttotal) print("Ahora se borrará un contacto:") pause() name = input("Borrar Nombre: ") tinicial = time() libreta.delete_name(name, 1) ttotal = time() - tinicial print("Cantidad de segundos en borrar un contacto: ", ttotal) elif option == 2: import BST libreta = BST.Book() print("Ahora se agregaran los contactos.") pause() tinicial = time() for i in range(size[s - 1]): contact = BST.Contact("", "", "912345678", "*****@*****.**") fakename = fake.name() fullname = return_name(fakename) contact.name, contact.last_name = fullname[0], fullname[1] contact.full_name = contact.name + " " + contact.last_name libreta.add(contact) ttotal = time() - tinicial print("Cantidad de segundos en agregar ", size[s - 1], " contactos: ", ttotal) pause() print("Ahora se buscará un contacto por su apellido.") pause() last_name = input("Buscar Apellido: ") tinicial = time() libreta.search_last_name(last_name, libreta.root) ttotal = time() - tinicial