importinga string from a text file in python code example Example: python import text file f = open('words.txt', 'r') #then to store content = f.read()