(Solved) How to read each line in an input text file and determine if each line is true or false?
Since idk how to format things in comments if thats a thing, heres what i have now. @achampion def readline(lines): if lines in strings: return True else: return False with open(‘output.txt’, ‘w+’) as output_file: with open(‘input.txt’, ‘r’) as input_file: for lines in input_file: if readline(lines) == True: output_file.write(‘True\n’) print(‘true’) else: output_file.write(‘False\n’) print(‘false’) 2 solved How … Read more