In this way, I want to create a program that uses Python binary search trees to store contacts, how should I do it?
python binary-search-tree
Create a data frame with a name and phone number in each column.
Then proceed to sort the binary search tree (I don't know why, but maybe it's for sorting purposes?).
Finally, it turns a loop that puts the sorted data into the data frame one after another, and then stores the data frame in .csv or .xlsx format. (Pandas makes it convenient to store.)
© 2024 OneMinuteCode. All rights reserved.