Python Forum
searching file for unique words - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: searching file for unique words (/thread-14223.html)



searching file for unique words - Siylo - Nov-20-2018

I am a new programmer looking to write a program that will search a .txt file and print out the unique words in it. Are there any built in functions that can help with this?


RE: searching file for unique words - Gribouillis - Nov-20-2018

I'd say open(), split(), set()


RE: searching file for unique words - wavic - Nov-20-2018

(Nov-20-2018, 05:04 PM)Gribouillis Wrote: I'd say open(), split(), set()

strip(string.puctuations)