Python Forum

Full Version: searching file for unique words
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
I'd say open(), split(), set()
(Nov-20-2018, 05:04 PM)Gribouillis Wrote: [ -> ]I'd say open(), split(), set()

strip(string.puctuations)