def check():
    with open('cefuse.txt') as f:
        datafile = f.readlines()
    for line in datafile:
        if line starts with 'Word 30' and contains only 0
            return True
    return False 
I want to check a line in .txt file. If it's contains only 0 then retcode will 1 otherwise 0. This is my line: Word 30 : 0x01312e58
 
     
    