Cody Bable

Generation

generate functionFri, 21 Apr 2023

how to check for end of file

f = open('something.txt', 'r') while True: line = f.readline() if not line: break print line

Questions about programming?Chat with your personal AI assistant