def tee(content, file):
 fd = open(file, 'a')
 fd.write((content + '\n'))
 fd.close()
 print content

def tee ( content , file ) : fd = open ( file , 'a' ) fd . write ( ( content + '\n' ) ) fd . close ( ) print content
write content to standard output and file .