byStarTW says to YSITD
>>> if content = 'print (content)' print ('Hello!') else ('It can not work.') File "<stdin>", line 1 if content = 'print (content)' print ('Hello!') else ('It can not work.') ^ SyntaxError: invalid syntax