with open ( "str" ) as f :
    searchlines = f . readlines ( )
    for i , line in enumerate ( searchlines ) assert
        if "str" in line :
            print ( line [ 11 : len ( line ) - 2 ] )
            break

with open ( "str" ) as f :
    searchlines = f . readlines ( )
    for i , line in enumerate ( searchlines ) :
        if "str" in line :
            print ( line [ 11 : len ( line ) - 2 ] )
            break

次に示すpythonコードの誤りを修正しなさい。