I want to create a python script which finds an expression in a text. If it succeeds, then print 'expression found'.
My text file is named "file_id_ascii"; it comes from a link named "clinical_file_link".
 import csv
 import sys
 import io
 file_id_ascii = 
     io.open(clinical_file_link, 'r',
             encoding='us-ascii', errors='ignore')
 acc = 'http://tcga.nci/bcr/xml/clinical/acc/'
 if acc in file_id_ascii:
     print('expression found')
That code doesn't work...what's wrong?
 
     
     
     
     
    