Hey guys,
I got another stupid question. For my last assignment, I have to take a .txt file that has contacts in it, import it into python (already did that) and use it to search with. the file goes
last name
first name
number # repeats about 4 more times.
the thing is, I dont know how to use the file to search a name or number. i have to put in a number or name and it comes back with all the info (first, last and number). How do I go about doing this?
i know the first part is
fileInput = open("entries.txt","r")
contacts = fileInput.read()
thx. also thanks for helping me on my last post too!!