Please help me find the error in the code :
# Use an import statement at the top import random word_file = "text.txt" word_list = [] #fill up the word_list with open(word_file,'r') as words: for line in words: # remove white space and make everything lowercase word = line.strip().lower() # don't include words that are too long or too short if 3 < len(word) < 8: word_list.append(word) # Add your function generate_password here # It should return a string consisting of three random words # concatenated together without spaces def generate_password(): a=random.randint(len(word_list)) c=random.randint(len(word_list)) b=random.randint(len(word_list)) return word_list[a]+word_list[b]+word_list[c] # test your function print(generate_password())