Search in paragraph's text: Difference between revisions

no edit summary
No edit summary
Line 230:
<!--</lang>-->
Output as requested
 
=={{header|Python}}==
<lang python>
with open('Traceback.txt', 'r' ) as f:
rawText = f.read()
 
paragraphs = rawText.split( "\n\n" )
 
for p in paragraphs:
if "SystemError" in p:
 
index = p.find( "Traceback (most recent call last):" )
 
if -1 != index:
print( p[index:] )
print( "----------------" )
</lang>
 
Output as requested.
 
=={{header|Raku}}==
Anonymous user