code: def main(args):
      
      filename = args[0]
      marker = args[1]
      for line in fileinput.input(filename, inplace=1):
          print(line.rstrip())
          if line.startswith(marker):
              break
docs: Remove lines after marker.