im new to programming and i need to know 2 things 1) How to search the term 'helper' between these two scripts and display the containing script as output. Please complete the code as as whole
import re
text_to_search = ''' There will be no shortage of topics for Federal Reserve Chairman Jerome Powell’s press conference on Wednesday, analysts said.
The post-meeting press briefing “figures to be one of the most lively post-meeting press conference of any Fed chair seen to date,” said Richard Moody, chief economist at Regions Financial Corp. in Birmingham, Ala.
While on the surface, the economy is looking strong, questions about the outlook.
There has never been a stimulus at the end of a tightening cycle. The $1.5 trillion Trump tax cut package and $300 billion increase in federal spending are just starting to have an impact on the economy and estimates vary widely about the road ahead '''
Text = 'Helper is the best'
pattern = re.compile(r'helper')
Aucun commentaire:
Enregistrer un commentaire