i want to program that take user input line:, and check that each line is correct or not from a speech.txt. if the line is correct with line in file it should proceed and ask input again line: check the line again, if the line is wrong print the correct line, and if the user types LINE! then print the correct line from file, and print GOOD when lines finished.
so FAR i have made this program but the last some loops are useless even if the lines in file are finished
f=open('speech.txt')
while True:
userline=input("line: ")
for line in f:
line=line.strip()
if line.lower() == userline.lower():
userline=input("line: ")
elif userline=="LINE!":
print(line)
print("Good!")
break