read a file and split the words python

Solutions on MaxInterview for read a file and split the words python by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "read a file and split the words python"
Alice
07 Apr 2019
1f = open("yourfile.txt", "r")
2
3content = f.read()
4words = content.split()
5
6f.close()