I tried opening a file and it says, FileNotFoundError: [Errno 2] No such file or directory: 'words.txt'
although it is in the same directory, here is the code I am using:
words = []
with open("words.txt", "r") as file:
words_string = file.read()
words = words_string.split()